Tobias Koppers
77aed6004a
fix a few edge cases with interop
...
add more test cases
2020-11-03 10:40:39 +01:00
Tobias Koppers
c7a9b8ed06
handle renaming in super class expression in nested scopes correctly
...
fixes #11840
2020-11-02 14:16:04 +01:00
Tobias Koppers
18495151b8
handle the case when execution order in a concatenated module is runtime-dependent
...
fix #11863
2020-10-29 17:53:56 +01:00
Tobias Koppers
98743909e6
fix incorrect concatenation when module runtime are merged
...
fixes #11856
2020-10-28 20:22:27 +01:00
Tobias Koppers
167fba77cf
handle runtime-dependent code in concatenated modules
2020-10-27 11:43:58 +01:00
Tobias Koppers
e1b5a78a24
add optimization.sideEffects: "flag" and use this by default
...
analysing for side effects cause unnecessary changes in parent modules and we want to avoid that in development
2020-10-27 06:50:07 +01:00
Tobias Koppers
0a8529fcb1
fix undetected module references
2020-10-20 13:50:32 +02:00
Karlis Gangis
95eabe47ec
fix: handle star import name collisions in module concatenation
2020-10-20 13:50:56 +03:00
Tobias Koppers
b3c73a543b
fix runtime-specific handling in concatenated modules
2020-10-16 11:47:30 +02:00
Tobias Koppers
2888c8a406
Revert "fix unused modules in chunk when optimizing runtime-specific "
2020-10-15 20:17:26 +02:00
Tobias Koppers
11935a9141
Merge pull request #11703 from webpack/bugfix/11678
...
fix infinite loop in inner graph optimization
2020-10-15 14:33:48 +02:00
Tobias Koppers
b6bc2730b9
fix infinite loop in inner graph optimization
...
fixes #11678
2020-10-15 13:24:40 +02:00
Tobias Koppers
5d9d9b90fb
fix runtime-specific handling in concatenated modules
2020-10-15 10:18:41 +02:00
Tobias Koppers
c00f65bc40
follow reexport in concatenated modules even if they are skipped due to side effects
...
fixes #11662
2020-10-13 10:01:54 +02:00
Tobias Koppers
bbe12305d6
Merge pull request #11628 from webpack/bugfix/real-content-hash
...
emit error instead of crashing when unexpected problem occurs
2020-10-10 22:06:40 +02:00
Tobias Koppers
47097196bd
skip connections copied to concatenated module
...
fixes #11617
2020-10-10 01:14:00 +02:00
Tobias Koppers
a8fb45d242
fixes crash in SideEffectsFlagPlugin
...
fixes #11615
2020-10-09 23:15:35 +02:00
Tobias Koppers
84b196d32d
emit error instead of crashing when unexpected problem occurs
2020-10-09 09:14:34 +02:00
Tobias Koppers
e7a18705c7
fix crash when using shared with runtimeChunk
2020-10-08 00:28:30 +02:00
Tobias Koppers
18c20d6327
Merge pull request #11582 from webpack/update-schema-utils
...
chore(deps): update `schema-utils`
2020-10-07 10:30:11 +02:00
Tobias Koppers
8e562aa260
fix some nitpicks with active state
2020-10-07 09:36:41 +02:00
Tobias Koppers
7948cb29df
don't touch not provided exports as they could be on the prototype
...
fix #11580
2020-10-06 15:38:17 +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
Tobias Koppers
146670b3bd
fix splitChunks error message bug
2020-10-06 11:11:10 +02:00
evilebottnawi
8c19efb7fd
chore(deps): update `schema-utils`
2020-10-05 21:58:54 +03:00
Tobias Koppers
51b6e9c4d7
fix delete in concatenated module
2020-09-29 22:12:42 +02:00
Tobias Koppers
68f0dbe748
allow plugins to modify the default size types for splitChunks
2020-09-29 14:34:59 +02:00
Tobias Koppers
5807e6c4db
when splitChunks entry violates minSize or minRemainingSize retry without offending modules
...
fixes #11513
2020-09-25 16:16:05 +02:00
Tobias Koppers
ea7af1df11
allow to move modules to parent chunks
2020-09-25 10:51:13 +02:00
Tobias Koppers
e0b10e9935
fix caching bug in RealContentHashPlugin
2020-09-16 11:12:41 +02:00
Tobias Koppers
eddd3206dc
add raw export for named reexport from non-harmony
2020-09-15 12:36:29 +02:00
Tobias Koppers
277d4b1b67
handle export mangling in concatenated modules
2020-09-15 12:36:23 +02:00
Tobias Koppers
9af66ff9af
revert to registering the namespace export because we need to know this early
2020-09-15 12:36:16 +02:00
Tobias Koppers
39e1a7e4c7
move magic names to constants in ConcatenationScope
...
improve types
2020-09-15 12:36:06 +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
b58393fce0
fix optimization bailout for HMR dependencies
2020-09-15 12:35:58 +02:00
Tobias Koppers
9941a8a497
create root reexports based on export mappings instead of dependencies
2020-09-15 12:35:55 +02:00
Tobias Koppers
5560415856
create root exports based on export mappings instead of dependencies
2020-09-15 12:35:46 +02:00
Tobias Koppers
91cc17b438
register exports in DependencyTemplates
2020-09-15 12:35:38 +02:00
Tobias Koppers
21e202eb24
move concatenation logic to HarmonyImportSpecifierDependency
2020-09-15 12:35:30 +02:00
Tobias Koppers
fc551fa6f3
move concatenation logic to HarmonyExportExpressionDependency
2020-09-15 12:35:21 +02:00
Tobias Koppers
47344e7e77
move concatenation logic to HarmonyExportSpecifierDependency and HarmonyExportImportedSpecifierDependency
2020-09-15 12:35:13 +02:00
Tobias Koppers
04dde38b4c
move concatenation logic to HarmonyImportSideEffectDependency
2020-09-15 12:35:03 +02:00
Tobias Koppers
fdd4a7713f
add ConcatenationScope
2020-09-15 12:34:50 +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
Ivan Kopeykin
a3fc25cadb
refactor asiSafe flag in dependencies
2020-08-29 17:00:03 +03: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
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