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
8e562aa260
fix some nitpicks with active state
2020-10-07 09:36:41 +02: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
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
49d9ec5625
cleanup public api and expose JavascriptParser
2020-08-28 01:46:14 +02:00
Tobias Koppers
41a8e2ea48
use xor to hash modules instead of sorting them
2020-08-14 10:54:24 +02:00
Tobias Koppers
e16bdfda6c
refactor used exports analysis, hashing, code generation, optimizations
...
to keep track of runtimes, used exports depending on runtime
modules can have different hashes and generated code depending on runtime
chunks are only considered as equal for MergeDuplicateChunks and SplitChunks when exports used in contained modules are equal
added `optimization.usedExports: "global"` to opt-out from used exports analysis per runtime
added `splitChunks.usedExports` and `splitChunks.cacheGroups[x].usedExports` to enable/disable used exports comparing for modules
`splitChunks.usedExports` defaults to `true` in production
2020-07-27 22:40:44 +02:00
Tobias Koppers
50ec72a6ca
use the full hash on modules that need the full hash of the compilation
...
use getFullHash runtime module for updating the hash in HMR
2020-04-30 17:57:01 +02:00
Tobias Koppers
b9c50fdb09
fix jsdoc documentations
2020-04-28 19:42:58 +02:00
Tobias Koppers
6400fd42b4
Merge pull request #10139 from yurynix/relative-dir-runtime-chunk-loading
...
Make inner folder entrypoints able to require common chunks
2020-01-17 11:39:52 +01:00
Tobias Koppers
2350d09680
move chunk filename template logic into reusable function
2020-01-16 15:40:44 +01:00
Tobias Koppers
b398814628
cache module wrappers in memory
2019-12-19 14:26:27 +01:00
Tobias Koppers
ab8a768cac
remove module.id and loaded shortcuts and only include them when used
2019-12-06 11:09:43 +01:00
Sergey Melyukov
f212d3c30e
pr comments
2019-12-03 18:11:46 +03:00
Sergey Melyukov
faf784b6ab
refactor hop runtime helper
2019-12-03 16:27:39 +03:00
Sergey Melyukov
ba306b6f2c
Merge remote-tracking branch 'upstream/master' into optimize-webpack-runtime-size
2019-12-02 19:54:21 +03:00
Sergey Melyukov
6b59d113a4
optimize webpack runtime size
2019-12-02 17:59:37 +03:00
Tobias Koppers
fe67677f55
offer cached methods to get chunk modules by source type
2019-11-20 11:20:34 +01:00
Tobias Koppers
efe0c2e610
avoid creating arrays in getConnections
2019-11-10 21:05:05 +01:00
Tobias Koppers
8d46b21fad
add Dependency.getCondition and conditional ModuleGraphConnections
...
getDependencyReference is no longer used to check of connection
2019-10-30 07:48:32 +01:00
evilebottnawi
8198ffb3e6
refactor: code
2019-10-22 00:14:05 +02:00