Tobias Koppers
11a7cac537
add useSimpleSourceMap flag to enable/disable OriginalSource for generated code
...
pass reduced options object to Source.map() function
2020-10-26 16:33:38 +01:00
Tobias Koppers
2ec90b3687
add asset info for `sourceFilename` and `javascriptModule`
2020-10-22 10:47:23 +02:00
Tobias Koppers
20c4eff3e7
Merge branch 'master' into bump-acorn-8
2020-10-07 10:35:13 +02:00
Tobias Koppers
8e562aa260
fix some nitpicks with active state
2020-10-07 09:36:41 +02:00
Tobias Koppers
fcca1d649d
analyse source code for side effects
...
mark the module as side effects free in such cases
allow 3rd state TRANSITIVE_ONLY to be side-effect-free but dependencies should still be included (for mini-css-extract-plugin)
2020-10-06 14:10:29 +02:00
Huáng Jùnliàng
bd902b37ed
chore: bump acorn to 8.0.3
2020-10-02 10:13:10 -04:00
Huáng Jùnliàng
d1dd411cb3
workaround upstream bug
2020-10-01 18:05:23 -04:00
Huáng Jùnliàng
48be8c4d26
fix typing
2020-09-30 08:49:06 -04:00
Huáng Jùnliàng
e142c50a91
revert AcornOptions hotfix
2020-09-30 08:49:05 -04:00
Huáng Jùnliàng
aea7ce053d
feat: add logical assignment support
2020-09-30 08:49:05 -04:00
Tobias Koppers
6dad1d0d6b
use better hash for renderManifest to avoid unnecessary invalidation
...
add bootstrap code to content hash
2020-09-28 11:42:05 +02:00
Tobias Koppers
d770a55ec0
Merge pull request #11474 from webpack/refactor/concatenation
...
Refactor module concatenation
2020-09-15 15:14:49 +02:00
Tobias Koppers
145d392143
fixes parsing of 'this' in arrow iife
...
yarnpkg/berry#1832
2020-09-15 13:46:10 +02:00
Tobias Koppers
9af1d7526b
refactor module concatenation to address discovered bugs/edge cases
2020-09-15 12:36:02 +02:00
Tobias Koppers
23e91dbbac
move module concatenation bailout checks to Module and for NormalModule to Generator
2020-09-15 12:35:59 +02:00
Tobias Koppers
fdd4a7713f
add ConcatenationScope
2020-09-15 12:34:50 +02:00
Tobias Koppers
7e85649492
improve target options
...
infer target properties from different targets and fill defaults from that
custom targets can now be created via `target: false` and a plugin (similar to the other options)
add stubs from universal chunk/wasm loading and module chunk format
add externalsPresets.electron and externalsPresets.electronRenderer
node.__file/dirname: "eval-only"
2020-09-10 11:42:09 +02:00
Tobias Koppers
041dfe15c7
Merge pull request #11440 from webpack/bugfix/hmr-incorrect-dispose
...
fix incorrect disposing of modules during HMR
2020-09-09 03:50:42 +02:00
Tobias Koppers
12997f0a6c
fix incorrect disposing of modules during HMR
2020-09-08 10:25:41 +02:00
Tobias Koppers
ed06a7f83a
new Worker() support
...
add support for async anonymous entrypoints from inside the codebase
add worker example
move entry options into Entrypoint and receive them from there
2020-09-08 07:37:20 +02:00
Tobias Koppers
0f089187e4
improve hashing of runtime modules that need a full hash
2020-09-01 18:31:29 +02:00
Tobias Koppers
bdeea6ec2f
Merge pull request #11395 from webpack/refactor/asi
...
refactor how asi handled
2020-09-01 15:47:41 +02:00
Tobias Koppers
962199c288
nitpicks
2020-09-01 11:15:52 +02:00
Tobias Koppers
dd6512ddfe
add support for IIFE with arrow functions
2020-08-29 01:59:42 +02:00
Ivan Kopeykin
35c56e67ae
refactor how asi handled
...
- add asiSafeExpression helper for JavascriptParser
- use asiSafe flag in DefinePlugin
- try to use (...) instead of Object()
2020-08-28 19:46:56 +03:00
Tobias Koppers
07d863e14c
implement enabledChunkLoadingTypes approach
...
allow chunkLoading per entry
allow custom library/chunkLoading types
2020-08-28 10:59:37 +02:00
Tobias Koppers
6ac97b3f58
move CommonJsChunkFormat into separate plugin
2020-08-28 10:58:02 +02:00
Tobias Koppers
b475d5fd0c
swap argument for consistency
2020-08-28 10:58:01 +02:00
Tobias Koppers
805d26b0ae
unify config options for jsonpFunction and chunkLoadFunction to chunkLoadingGlobal
...
rename hotUpdateFunction to hotUpdateGlobal
2020-08-28 10:58:00 +02:00
Tobias Koppers
b66599ea58
move ArrayPushCallbackChunkFormat into separate plugin
2020-08-28 10:57:58 +02:00
Tobias Koppers
c0249af6d1
Merge pull request #11370 from webpack/feature/javascript-parser-improvement
...
use bitmask instead of array+set in getMemberExpressionInfo
2020-08-28 10:08:22 +02:00
Tobias Koppers
49d9ec5625
cleanup public api and expose JavascriptParser
2020-08-28 01:46:14 +02:00
Tobias Koppers
e23bc8ca7c
use expression hook for metaProperty
...
a MetaProperty is an Expression
it's more consistent
2020-08-27 13:03:56 +02:00
Ivan Kopeykin
1556341c13
fix #11310
2020-08-27 12:59:28 +02:00
Ivan Kopeykin
a739705ff8
expose consts
2020-08-24 23:04:35 +03:00
Ivan Kopeykin
434c446d91
use bitmask instead of array+set in getMemberExpressionInfo
2020-08-24 22:00:08 +03:00
Tobias Koppers
65710679fb
Merge pull request #11299 from webpack/feature/evaluate-new-regexp
...
feat: evaluate new RegExp
2020-08-24 18:27:22 +02:00
Tobias Koppers
71cf7f4dc8
add support for reexporting in CommonJS
...
and necessary refactoring + fixes for that
2020-08-17 21:32:47 +02:00
Tobias Koppers
52cfe09ac7
track statement path in parser instead of only positions
2020-08-17 09:45:50 +02:00
Ivan Kopeykin
eb48bb2c61
check that RegExp is not redefined
2020-08-15 12:35:04 +03:00
Ivan Kopeykin
ba1f278417
use bitmask in isValidRegExpFlags, add unit test for it
2020-08-15 12:26:50 +03:00
Tobias Koppers
41a8e2ea48
use xor to hash modules instead of sorting them
2020-08-14 10:54:24 +02:00
Ivan Kopeykin
8c6860e6c7
increase coverage
2020-08-09 22:50:38 +03:00
Ivan Kopeykin
9d36bd46b3
feat: evaluate new RegExp
2020-08-09 22:17:19 +03:00
Tobias Koppers
537c6f228c
Merge pull request #11292 from webpack/fix/issue-11283
...
fix(#11283 ) bug with switch case
2020-08-08 11:06:01 +02:00
Ivan Kopeykin
8e480b8720
use one block scope for switch
2020-08-08 11:13:38 +03:00
Tobias Koppers
fcf2647019
Merge pull request #11257 from webpack/chore/todos-to-defined-types
...
add more types
2020-08-07 19:29:32 +02:00
Tobias Koppers
1eacb07c95
improve optional chaining handling
2020-08-07 14:45:25 +02:00
Ivan Kopeykin
70c0b28d00
add tests, refactor how optional chaining handles
2020-08-07 14:44:54 +02:00
Ivan Kopeykin
18ae4d16d8
add evaluation to optional chaining
2020-08-07 14:43:40 +02:00