Commit Graph

14435 Commits

Author SHA1 Message Date
Tobias Koppers 9b08be6d10 keep old test case too 2021-10-18 23:14:50 +02:00
Hal Blackburn 8f2c266966 fix build cycle detection in Compilation
When tracking the modules which are being built by an origin module,
the code mistakenly adds the origin module itself to the set of modules
it's building, instead of the actual module about to be built. As a
result, when a module build finishes (and the module has itself called
loadModule()), it remains marked as building itself. So if it gets
loaded again, a BuildCycleError is reported despite no cycle existing.

Fixes #14379
2021-10-18 20:24:04 +01:00
Hal Blackburn 1484aecf4c add failing test to reproduce issue #14379
Currently a BuildCycleError can incorrectly be reported when a module
uses LoaderContext.loadModule() more than once with the same request.
2021-10-18 20:16:58 +01:00
Hal Blackburn 91659f2bcb refactor load-module-cycle test loader
It can now load more than one ref per module, which is needed to test
issue #14379.
2021-10-18 20:08:56 +01:00
Tobias Koppers 4696287cd7
Merge pull request #14492 from webpack/feat-add-pure-notation
add pure notation to Object calls
2021-10-17 12:09:00 +02:00
Ivan Kopeykin 27411f8f0f add pure notations to Object calls
/*#__PURE__*/ notations should help minimizers to drop unused Object(...) calls
2021-10-17 11:06:14 +03:00
Tobias Koppers 8a6d156c15 5.58.2 2021-10-13 11:39:02 +02:00
Tobias Koppers bf0cb5bfc7
Merge pull request #14474 from webpack/bugfix/filesysteminfo-snapshot
handle non-existing directories
2021-10-13 11:32:58 +02:00
Tobias Koppers e26ac7540a handle non-existing directories
fixes #14441
2021-10-13 10:51:36 +02:00
Tobias Koppers 1891b64d6b
Merge pull request #14468 from webpack/bugfix/unsafe-cache-duplication 2021-10-13 09:25:50 +02:00
Tobias Koppers 7e9534a67b
Merge pull request #14469 from webpack/perf/hashing-bigint 2021-10-13 09:24:58 +02:00
Tobias Koppers 80b1e77705 fix duplication due to unsafe cache 2021-10-12 22:46:50 +02:00
Tobias Koppers 3fa83c6c77 help v8 hashing the bigint 2021-10-12 09:50:13 +02:00
Tobias Koppers 2306d13fbc
Merge pull request #14457 from webpack/fix-serialization-context
fix: provide correct serialization context
2021-10-11 21:14:52 +02:00
Ivan Kopeykin dfbce79f3c fix: provide correct serialization context
instead of context use local variable ctx
2021-10-11 13:41:31 +03:00
Tobias Koppers 2eecffb273 5.58.1 2021-10-08 15:41:04 +02:00
Tobias Koppers d106f00db5
Merge pull request #14436 from webpack/revert/chunk-combinations
Revert "track chunk combinations for modules"
2021-10-08 15:39:01 +02:00
Tobias Koppers ada210827a
Merge pull request #14435 from webpack/bugfix/webpack-extension 2021-10-08 15:10:29 +02:00
Tobias Koppers 1ee6f808d3 Revert "track chunk combinations for modules"
This reverts commit 0e13c7dea4.
2021-10-08 15:08:48 +02:00
Tobias Koppers 67d6c7a31b fix `.webpack[]` suffix to not execute rules 2021-10-08 13:56:39 +02:00
Tobias Koppers 7666277551 5.58.0 2021-10-07 17:48:10 +02:00
Tobias Koppers 59581f53ac
Merge pull request #14427 from webpack/perf/chunk-combinations 2021-10-07 17:32:30 +02:00
Tobias Koppers 0c71073adb
Merge pull request #14426 from Zhangdroid/main
add `diagnostics_channel` to NodeTargetPlugin
2021-10-07 16:41:51 +02:00
Tobias Koppers 049b859879 compute depth faster 2021-10-07 16:13:42 +02:00
Tobias Koppers 643f1200c0 skip chunk conditions faster 2021-10-07 15:55:22 +02:00
Tobias Koppers 0e13c7dea4 track chunk combinations for modules
improves caching
improves SplitChunksPlugin
2021-10-07 15:43:27 +02:00
Zhuo Zhang e0915a538e add "diagnostics_channel" to NodeTargetPlugin 2021-10-07 21:28:48 +08:00
Tobias Koppers 48ffd04129
Merge pull request #14425 from webpack/feature/hook-read-resource 2021-10-07 15:14:08 +02:00
Tobias Koppers 508e8d50f2 expand readResource hook to cover normal file reading 2021-10-07 10:28:44 +02:00
Tobias Koppers da74127bfe
Merge pull request #14420 from webpack/perf/remove-caching
remove caching from getModule/ChunkGraphModule/Chunk
2021-10-06 20:19:09 +02:00
Tobias Koppers b1b1796101
Merge pull request #14414 from webpack/perf/chunk-graph
improve chunk graph creation performance
2021-10-06 20:18:42 +02:00
Tobias Koppers e1aa5abff0 fix case where runtime is empty string 2021-10-06 15:41:23 +02:00
Tobias Koppers a6fc14b667 update types 2021-10-06 15:39:21 +02:00
Tobias Koppers 7311f955a8 only capture time when not cached
time is also expensive...
2021-10-06 15:39:21 +02:00
Tobias Koppers 283359261d add mem caching for getBlockModules 2021-10-06 15:39:21 +02:00
Tobias Koppers 1e5abcc51b improve extractBlockModules 2021-10-06 15:39:21 +02:00
Tobias Koppers 3143fe602a remove caching from ChunkGraph 2021-10-06 14:06:43 +02:00
Tobias Koppers 7da89c0580 remove caching from getModuleGraphModule 2021-10-06 14:06:43 +02:00
Tobias Koppers 250c6b3d16
Merge pull request #14416 from webpack/logging/affected2 2021-10-06 13:56:26 +02:00
Tobias Koppers 2934fd0e3c add timing to second affected module computation 2021-10-06 10:24:12 +02:00
Tobias Koppers 0581bb3c1c 5.57.1 2021-10-05 20:25:15 +02:00
Tobias Koppers 48c3d290c5
Merge pull request #14413 from webpack/bugfix/cache-unaffected
bugfix cacheUnaffected
2021-10-05 20:19:38 +02:00
Tobias Koppers 07ad896f7a bugfix cacheUnaffected 2021-10-05 20:15:04 +02:00
Tobias Koppers e841ab0141 5.57.0 2021-10-05 17:06:41 +02:00
Tobias Koppers 9e3e71813f
Merge pull request #14410 from webpack/bugfix/allow-side-effects
optimization.sideEffects is compatible with cacheUnaffected
2021-10-05 17:05:55 +02:00
Tobias Koppers da098d7872 optimization.sideEffects is compatible with cacheUnaffected 2021-10-05 16:54:51 +02:00
Tobias Koppers 56653f8275
Merge pull request #14406 from webpack/bugfix/cache-unaffected-ids
handle changing module/chunk ids for cacheUnaffected
2021-10-05 16:06:14 +02:00
Tobias Koppers f05246efcb use buildInfo instead of hash for cacheUnaffected 2021-10-05 15:09:39 +02:00
Tobias Koppers 4c688339be run test cases for cacheUnaffected 2021-10-05 15:08:20 +02:00
Tobias Koppers 91b6972144 add memCache2 for mem caching with module/chunk ids 2021-10-05 15:08:18 +02:00