Tobias Speicher
8f56fcba72
Replace deprecated String.prototype.substr()
...
String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr ) so we replace it with slice() which works similarily but isn't deprecated.
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-03-13 22:54:18 +01:00
Ivan Kopeykin
b89f397e3c
handle more options
2022-03-01 17:16:49 +03:00
Tobias Koppers
b0fa9ccada
pretty files
2021-05-11 09:31:46 +02:00
Tobias Koppers
013ca3bdd7
add commonjsMagicComments options
...
move javascript related options from 'module' to 'module.parser.javascript'
2021-01-20 20:19:49 +01:00
Ivan Kopeykin
4fc44a3398
add more types
2020-08-02 23:47:54 +03:00
Tobias Koppers
5f4c4662dd
rename parsePathQueryFragment to parseResource and add caching
2020-07-06 17:39:52 +02:00
Tobias Koppers
7442a211b9
add support for resource fragments
2020-07-03 17:03:15 +02:00
evilebottnawi
cbef1509dd
chore: setup cspell
2020-03-13 12:25:20 +03:00
Tobias Koppers
acff6ec992
move BasicEvaluatedExpression and JavascriptParserHelpers to javascript directory
2019-10-22 09:27:52 +02:00
evilebottnawi
8198ffb3e6
refactor: code
2019-10-22 00:14:05 +02:00
Tobias Koppers
b2e7837288
replace Object.assign with object spread
2019-06-19 13:16:05 +02:00
Tobias Koppers
e4ba79f0b8
add type coverage for ContextModuleOptions and GroupOptions
2019-06-14 11:44:54 +02:00
Tobias Koppers
4178b18196
Merge tag 'v4.25.1' into next
...
4.25.1
2018-11-05 19:54:56 +01:00
Tobias Koppers
babe736cfa
replace prefix/postfix even when equal for wrapped context
...
walk inner expressions in wrapped context
add tracking of inner expressions in wrapped BasicEvaluatedExpression
fixes #8293
closes ##8337
2018-11-05 15:17:56 +01:00
Tobias Koppers
86535693f1
Partial update of #8294 , compat layer is no longer needed
2018-11-05 10:28:56 +01:00
Tobias Koppers
8cf1cdb74f
Merge tag 'v4.25.0' into next
...
4.25.0
2018-11-05 10:27:45 +01:00
Tobias Koppers
22aee1ec69
fix shortcut condition
2018-11-03 21:59:27 +01:00
Tobias Koppers
1a541e12ce
Perform replacmenents even without parser
2018-11-03 11:19:37 +01:00
Tobias Koppers
f0dfc45b9f
merge parts too when simplifying
...
fix bug which keeps const conditional expression in bundle
remove parsing code from ContextDependencyHelpers
2018-11-03 11:16:16 +01:00
Zhibin Liu
25af83f288
fix after comments
2018-10-30 19:39:43 +08:00
Zhibin Liu
16ff800985
handle conditional evaluated to template string
2018-10-30 16:22:09 +08:00
Zhibin Liu
d3041bc816
only walk expressions that are not replaced by ContextDependency
2018-10-30 00:33:58 +08:00
Tobias Koppers
565b569b68
Merge tag 'v4.16.5' into next
...
4.16.5
2018-08-06 09:20:57 +02:00
Tobias Koppers
61633aa91c
fix #7778
...
remove prepend in favor of replaces
improve code style in ContextDependencyHelpers
2018-08-03 09:20:23 +02:00
Tobias Koppers
cf5f1d723c
format existing code
2018-07-30 21:29:21 +02:00
Tobias Koppers
f2ad440de8
More strict linting of jsdocs
...
Use TODO over any when type is possible
2018-05-08 14:53:33 +02:00
Tobias Koppers
5238159d21
run prettier on existing code
2018-02-25 02:00:20 +01:00
Tobias Koppers
f7c2f8e470
Update code style to arrow functions
2017-11-08 11:56:01 +01:00
Tobias Koppers
ea56916d53
rename `async` to `mode` in context options
...
`async: false` is now `mode: "sync"`
2017-10-16 14:49:51 +02:00
Tobias Koppers
f024687067
Refactor ContextDependency to take an options object
...
merged with options object from async info
2017-10-16 13:19:53 +02:00
Tobias Koppers
9075637b39
Refactor contextOptions
2017-10-16 12:59:36 +02:00
Landon Crapo
5d1759fd4c
modified import context filtering logic to filter on file names.
2017-10-13 15:41:02 -06:00
Landon Crapo
f884136861
created filter logic for dynamic import statements
2017-10-13 15:41:01 -06:00
Ma Cheng
1fdf800f09
Merge branch 'master' into feature/import-chunk-name
2017-04-06 11:35:40 +08:00
SendilKumar N
e91770b6e4
refactor(ES6): contextDependencyHelper
2017-04-05 21:00:50 +08:00
mc-zone
b65432a2f1
Add specify chunk name feature for `import()`
...
Add specify chunk name feature for `import()` by following special comment block after the param:
import('./foo' /* webpackChunkName = "myChunkName" */)
Thus we can use chunk name like `requre.ensure` and avoid conflicts with the specification.
2017-03-26 17:18:30 +08:00
Tobias Koppers
8e69a80847
code linting
2017-01-11 12:29:01 +01:00
Diogo Franco (Kovensky)
c1766122c0
Add descriptions for valid JSDoc
2016-11-21 23:38:56 +09:00
Diogo Franco (Kovensky)
e9697cbcd5
Refactor regexp quoting
2016-11-21 08:37:22 +09:00
Diogo Franco (Kovensky)
da5c735b56
Add implementation
2016-11-21 08:37:22 +09:00
Kenny Tran
eebc5ceaf6
Fix no-redeclare in code
2016-01-18 18:57:42 -08:00
Tobias Koppers
f7d799adb4
rebeautify without spacing after keyword
2015-07-16 00:19:23 +02:00
Avi Haiat
0a340f2b1a
feat(app): Beautify all lib files
2015-07-13 01:20:09 +03:00
Tobias Koppers
3ddb26ff36
more reliable parsing of wrapped expressions
...
fixed #801
2015-02-28 00:51:15 +01:00
Tobias Koppers
f53a7f3e66
fixed parsing of wrapped expressions
...
fixes #345
2014-07-07 13:20:38 +02:00
Tobias Koppers
61f1c4d37d
allow to configure default RegExps for automatically created contexts
...
allow to configure when an automatically created context is critical
better warning message in critical dependencies warning
fixes #196
fixes #198
2014-03-11 16:08:22 +01:00
Tobias Koppers
dc69f23de4
fixes #65
2013-02-13 14:42:34 +01:00
Tobias Koppers
ee01837d66
Refactored everything for 0.9
2013-01-30 18:49:25 +01:00