Commit Graph

4190 Commits

Author SHA1 Message Date
Tobias Koppers 49890b77aa
Merge pull request #13153 from webpack/bugfix/13130
fix #13130
2021-04-15 17:44:41 +02:00
Tobias Koppers 70316dc998 fix #13130 2021-04-15 16:32:00 +02:00
Tobias Koppers 4837c3ddb9
Merge pull request #13140 from jamesgeorge007/update-property-desc
chore: update cache property descriptions
2021-04-14 21:32:51 +02:00
Tobias Koppers 8d3a230366 fix passing publicPath to `this.importModule` 2021-04-14 19:48:22 +02:00
jamesgeorge007 9f9976d3cd test: update snapshots 2021-04-14 22:43:44 +05:30
Tobias Koppers aca0ee5073
Merge pull request #13137 from webpack/feature/public-path-entry
allow to specify `publicPath` for each entrypoint
2021-04-14 18:22:59 +02:00
Tobias Koppers 52178a5aee
Merge pull request #13134 from webpack/bugfix/hmr-in-execute-module
importModule & HMR
2021-04-14 16:55:37 +02:00
Tobias Koppers 38de0dbf4e allow to specify `publicPath` for each entrypoint 2021-04-14 16:38:01 +02:00
Tobias Koppers f46e816a38 add HMR test case and fix problems with it 2021-04-14 16:03:59 +02:00
Tobias Koppers 31353e36c5
Merge pull request #13132 from webpack/test/stability
improve test stability
2021-04-14 12:55:08 +02:00
Tobias Koppers ad4b8063ac improve test stability 2021-04-14 12:10:15 +02:00
Tobias Koppers 846e8f0265 improve error reporting 2021-04-13 17:33:41 +02:00
Tobias Koppers 543259f173 update snapshot 2021-04-12 15:41:00 +02:00
Tobias Koppers 03961f3391
Merge pull request #13102 from webpack/feature/built-time-execution 2021-04-12 15:00:32 +02:00
Tobias Koppers f8ed312c34 capture module assets when using executeModule 2021-04-12 12:27:55 +02:00
Tobias Koppers 596b133087 update snapshot 2021-04-12 12:27:55 +02:00
Tobias Koppers ea3e0a39ac add experiments.executeModule
rename runModule -> executeModule
improve error reporting
2021-04-12 12:27:55 +02:00
Tobias Koppers 0d6b5db12e add watch test case 2021-04-12 12:27:55 +02:00
Tobias Koppers 065177df66 add experimental support for build time execution
allow to execute a part of the module graph at build time
e. g. to generate code or other assets

loaders have access to that via `this.importModule(request, options)`
2021-04-12 12:27:54 +02:00
Tobias Koppers 21bc6e715b add support for a pseudo `.webpack[type]` extension allows to set module type when no other type is set from module.rules 2021-04-12 12:27:54 +02:00
Tobias Koppers 33b44a05ea DefinePlugin invalidates modules when new defines are added
fixes https://github.com/vercel/next.js/issues/23901
2021-04-12 12:23:51 +02:00
Tobias Koppers b525e61a72 make sure that invalid event is only reported once 2021-04-09 17:51:58 +02:00
Tobias Koppers 6e3dbe32eb
Merge pull request #13077 from webpack/bugfix/hmr-entrypoint-reexecute
ensure that entrypoints are always re-executed when updated
2021-04-07 18:30:16 +02:00
Tobias Koppers 795b4b7b50 ensure that entrypoints are always re-executed when updated 2021-04-07 17:37:06 +02:00
Tobias Koppers 651e2ff0cb fix subtraction of runtimes
fixes #13063
2021-04-07 15:50:28 +02:00
Tobias Koppers 83c8180c7d prioritize static reexport over runtime reexport for target determination
this allows to optimize cases where empty modules are reexported e. g. caused by typescript type-only exports
2021-04-06 21:36:43 +02:00
Tobias Koppers 48b7cce9ce
Merge pull request #13051 from KENNYSOFT/infrastructurelogging-colors 2021-04-06 18:13:52 +02:00
Hyeonmin Park e5e7b3247a fix: update cli test snapshot 2021-04-06 23:46:57 +09:00
Hyeonmin Park 74fabafe22 fix: base config test in Defaults 2021-04-06 22:50:19 +09:00
Tobias Koppers 4e117781e8 improvements
add appendOnly flag
add custom console
add custom stream
2021-04-06 15:20:27 +02:00
Tobias Koppers e2fb89eed1 improve resolving of build dependencies when `exports` field is used 2021-04-06 13:58:36 +02:00
Tobias Koppers 8f3a16a49a improve handling of optional build dependencies 2021-04-06 11:28:41 +02:00
Hyeonmin Park 72ba68cc78 feat: add colors flag to infrastructureLogging 2021-04-04 14:28:31 +09:00
Hyeonmin Park f000617d9f chore: fix typo collaped 2021-04-04 13:39:30 +09:00
Tobias Koppers 3b8d26df1e
Merge pull request #12990 from webpack/bugfix/memory-leak-in-ic
memory usage improvements, add GC support for memory cache, persistent cache only mode
2021-04-01 18:14:16 +02:00
Tobias Koppers e42f6d71d5
Merge pull request #12963 from smelukov/add-missing-groupModulesByType
(fix): add missing scheme property stats.groupModulesByType
2021-04-01 17:31:15 +02:00
Tobias Koppers c84329f73c add GC to the memory cache and make it configurable
memory GC happens by default when persistent cache is enabled and in development mode
otherwise memory cache is kept forever

make maxAge for persistent cache configurable
GC the oldest content file even if it's not touched (to keep cache size small)

filesystem cache will now no longer cache in memory, but restore items from disk again when it was persisted
2021-04-01 17:12:53 +02:00
Tobias Koppers d39e948347 update cli snapshot 2021-03-31 19:24:27 +02:00
Tobias Koppers 3d90836f29 fix some edge cases in deterministicGrouping and add more tests 2021-03-31 16:55:30 +02:00
Tobias Koppers 0307bcf691
Merge pull request #12902 from xiaoxiaojx/feat/assetModulePublicPath 2021-03-23 07:56:55 +01:00
Tobias Koppers 3bdfa84ca8 remove from normalization 2021-03-22 15:10:13 +01:00
Tobias Koppers c5fa7510f2 remove `output.assetModulePublicPath` as it would be redundant to `module.generator.asset.publicPath`
add test case for assetInfo merging
2021-03-22 15:05:50 +01:00
Tobias Koppers 50a170029f add test case 2021-03-22 11:59:48 +01:00
xiaoxiaojx 55fd79ee6a feat: support assetModulePublicPath 2021-03-20 17:53:01 +08:00
Seth Benjamin 94bd3bc6f9 fix: allow invalidation after first watch run 2021-03-19 12:32:50 -07:00
Tobias Koppers f81c9ba777
Merge pull request #12936 from webpack/bugfix/cache-entry-ids 2021-03-19 17:25:00 +01:00
Tobias Koppers 7de25e52bb
Merge pull request #12935 from webpack/feature/loader-utils
offer contextify and absolutify in loader context as utils
2021-03-19 17:02:10 +01:00
Tobias Koppers 89a44ab742 fix caching bug when split chunks of an entrypoint change and modules of the entrypoint stay equal 2021-03-19 16:13:18 +01:00
Tobias Koppers aacd7b2143 fix library exports when using onChunks in entry 2021-03-19 16:13:18 +01:00
Tobias Koppers ecb2c18cc6 offer contextify and absoluteify in loader context as utils 2021-03-19 10:59:10 +01:00