Commit Graph

6890 Commits

Author SHA1 Message Date
Tobias Koppers aa83e463c5
Merge pull request #14291 from webpack/feature/eval-bailouzt
avoid bailout of unused eval
2021-09-24 10:13:05 +02:00
Tobias Koppers 4815710076 batch hashing 2021-09-23 23:32:40 +02:00
Tobias Koppers da8e93af33 use xxhash64 for future defaults 2021-09-23 15:04:22 +02:00
Tobias Koppers 3f142d9cd6 allows to select `xxhash64` as hashFunction 2021-09-23 15:02:02 +02:00
Tobias Koppers 4a8bf4c084 allow to configure all hash functions used
fix default hash function for HttpUriPlugin to sha512
2021-09-23 14:55:13 +02:00
Tobias Koppers d75a387d15
Merge pull request #14260 from webpack/fix-7519 2021-09-21 10:31:03 +02:00
Tobias Koppers 18ee3fb1a9 avoid bailout of unused eval
expose InnerGraph and runtime utils
2021-09-20 17:40:51 +02:00
Ivan Kopeykin ffad02dbe2 fix discussions 2021-09-20 15:40:45 +03:00
Ivan Kopeykin 1b2c08a672 fix discussions 2021-09-17 07:23:29 +03:00
Tobias Koppers abd21a27f3
Merge pull request #14185 from webpack/perf/snapshot-allocations
avoid allocations in SnapshotOptimization
2021-09-16 17:18:52 +02:00
Tobias Koppers ff69b3f617 allow process to exist and cancel timeout again 2021-09-16 13:56:14 +02:00
Ivan Kopeykin 18ed9cb34b fix logic expression evaluation 2021-09-16 13:15:01 +03:00
Tobias Koppers 562f17a8c0
Merge pull request #14212 from webpack/fix-14210
add options to warn on using Node.js features
2021-09-14 14:03:05 +02:00
Ivan Kopeykin 5592f6616f add experiments.futureDefaults
futureDefaults applies next major defaults
adds node.global=warn
node.__filename=warn-mock
node.__dirname=warn-mock
2021-09-14 11:29:57 +03:00
wood1986 6a24863c1b fix: add stream/web to NodeTargetPlugin 2021-09-11 23:52:45 -07:00
Tobias Koppers 9dfcc27f6b remove unnecessary Object.assign 2021-09-09 00:28:44 +02:00
Tobias Koppers 96aca0e4d7 avoid allocations in SnapshotOptimization 2021-09-08 21:25:40 +02:00
Tobias Koppers 3270275ffe split fresh packs by time
add comments

fix loosing cache

correctly store a lazy
2021-09-08 16:27:55 +02:00
Tobias Koppers d05648611a
Merge pull request #14134 from webpack/bugfix/webpack-extension
match resource should not include special `.webpack[...]` extension
2021-09-03 17:06:01 +02:00
Tobias Koppers a513b1381a
Merge pull request #14118 from webpack/bugfix/multiple-module-externals
fix null module externals
2021-09-03 16:46:55 +02:00
Tobias Koppers 765101bded match resource should not include special `.webpack[...]` extension
`.webpack[]` should not be used for resource path
2021-09-03 16:17:41 +02:00
Tobias Koppers b50d033960 allow to mangle exports of module externals 2021-09-03 13:47:09 +02:00
Tobias Koppers 4e8a621bfa fix null module externals 2021-09-03 13:47:09 +02:00
Tobias Koppers 60408e1136 add importModule to loader context by default
always enable experiments.executeModule and remove it
2021-09-02 16:27:39 +02:00
Tobias Koppers b16568a253 upgrade filename runtime module to full hash module when referencing a full hash chunk 2021-09-02 10:29:59 +02:00
Tobias Koppers 179d2e00fe
Merge pull request #14095 from webpack/bugfix/close-watching-when-closing-compiler
close watching when closing compiler
2021-08-30 16:33:12 +02:00
Tobias Koppers 05c1861684 close watching when closing compiler
do not shutdown cache when closing only the watching
2021-08-30 15:01:24 +02:00
Tobias Koppers ae711acba7 copy/read exports from imported async modules later once they are awaited 2021-08-30 14:26:34 +02:00
Tobias Koppers 67e17b232b Merge branch 'main' into aleen42/main 2021-08-30 12:28:34 +02:00
Tobias Koppers dab1c30b8f use a Set for better performance 2021-08-30 12:25:46 +02:00
Tobias Koppers ebb7f61a11
Merge pull request #14068 from rigor789/patch-2
fix: safeguard against `undefined` entry
2021-08-27 19:47:07 +02:00
Tobias Koppers ca2179f0c2 fix error and callback handling 2021-08-26 16:03:31 +02:00
Tobias Koppers 4195f21c48 Revert "fix: safeguard agains `undefined` entry"
This reverts commit 99585d88d0.
2021-08-26 16:03:27 +02:00
Igor Randjelovic 99585d88d0
fix: safeguard agains `undefined` entry 2021-08-25 21:29:40 +02:00
Daniel Diekmeier 093a9bed16
Fix spelling of `dependOn`
The help text suggests using `dependsOn`, but the `s` is a typo.

The correct property is called `dependOn`: https://webpack.js.org/concepts/entry-points/#entrydescription-object
2021-08-24 16:15:17 +02:00
Tobias Koppers e73864c036
Merge pull request #14031 from webpack/bugfix/concatenated-contextify 2021-08-19 16:06:56 +02:00
Tobias Koppers c76be4d738 make some things context-independent
* ConcatenatedModule.identifier()
* NormalModule source urls

fixes #14014
2021-08-19 14:57:39 +02:00
Tobias Koppers 5239f26427
Merge pull request #14030 from webpack/bugfix/crash-fsinfo
fix crash when trying to snapshot not existing directory
2021-08-19 14:05:41 +02:00
Tobias Koppers ff69a4a631
Merge pull request #13997 from yujunjung/main
fix: exporting async module as library `type:  "module"`
2021-08-19 13:20:38 +02:00
Tobias Koppers 0088d5565c fix crash when trying to snapshot not existing directory 2021-08-19 13:17:18 +02:00
Tobias Koppers 4e5e0aca41
Merge pull request #14009 from henryqdineen/hqd-module-creation-callback
Pass module to `compilation.addModuleChain()` callback when applicable
2021-08-19 10:31:52 +02:00
Tobias Koppers 9577b88d4b track and resolve symlinks when reading context timestamps/hashes
refactor context snapshotting for abstraction purposes
add (symlink) unit test cases for FileSystemInfo snapshotting
2021-08-18 14:50:23 +02:00
hdineen c3e4e17322 Pass module to `Compilation.addModuleChain` callback when applicable
Although the callbacks for the `addModuleChain` and `addModuleTree` methods
are of type `ModuleCallback`, the `result` parameter is always `undefined`.
2021-08-16 15:40:35 -04:00
Yujun Jung 71fc88267f lint 2021-08-16 21:06:43 +09:00
Yujun Jung 99bf506310
Update lib/library/ModuleLibraryPlugin.js
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2021-08-16 20:53:17 +09:00
Yujun Jung 8dd94755b2
Update lib/library/ModuleLibraryPlugin.js
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2021-08-16 20:53:07 +09:00
Tobias Koppers 08ea1464d5 keep state of chunk loading during hmr updates
ignore duplicate chunk loads
2021-08-16 13:50:43 +02:00
Yujun Jung 57fcea48bf fix: exporting async module 2021-08-16 00:39:22 +09:00
Aleen f3a37ce8f8 fix(utils): avoid reserved property under ES 2021-08-11 15:25:45 +08:00
Tobias Koppers db9b2df6cd improve allocations needed in serialization 2021-08-10 18:41:02 +02:00