Commit Graph

354 Commits

Author SHA1 Message Date
alexander.akait 0011ec130a refactor: code 2024-09-20 15:49:36 +03:00
Mikhail Shipov 1b217a6d94 fix: add extra merge duplicates call after split chunks 2024-09-10 13:58:08 +03:00
alexander.akait ff9e19809a fix: types 2024-08-07 19:14:54 +03:00
fi3ework 1d07f1fa95 refactor 2024-08-05 17:04:46 +08:00
alexander.akait 93743d233a refactor: code 2024-08-02 19:32:31 +03:00
alexander.akait c802a98f58 style: improve 2024-08-02 19:32:22 +03:00
alexander.akait b9d9a5d9ff style: improve style of code 2024-08-02 19:32:14 +03:00
alexander.akait c914fe202a style: improve style of code 2024-08-02 19:32:14 +03:00
alexander.akait 500ee96dcb style: improve style of code 2024-08-02 19:32:14 +03:00
alexander.akait 423e89b2c7 style: improve style of code 2024-08-02 19:32:13 +03:00
fi3ework c54d4a4b1f chore: use 'modern-module' as new type 2024-06-19 11:11:42 +08:00
alexander.akait 32717aae42 fix: all filesystem types 2024-03-11 19:33:52 +03:00
alexander.akait caea8131b3 fix: types 2024-02-22 17:36:36 +03:00
Nitin Kumar 412ae5425e chore: udpate prettier to v3 2024-01-14 07:11:34 +05:30
ahabhgk 2715265126 wip 2024-01-12 15:57:52 +08:00
Sayan751 7d8799ac4b
added unmanagedPaths to snapshot options 2023-10-04 23:28:11 +02:00
alexander.akait 27cae68bda feat: allow to use `falsy` loaders and plugins 2023-06-14 18:25:31 +03:00
alexander.akait e3b1837442 fix: compatibility `__non_webpack_require__` with ES modules 2023-06-03 02:13:44 +03:00
Shipov Mikhail 85a963a67b feat: add readonly flag for filesystem cache 2023-05-25 03:28:35 +03:00
alexander.akait 62d2a17ce4 fix: handle `#hash` URL as external 2023-05-02 01:24:01 +03:00
Thomas Tay c188270d13
Merge branch 'webpack:main' into main 2023-01-25 12:06:59 -08:00
Thomas Tay 895df2a5a1 Worker public path changes 2022-10-21 16:30:43 -07:00
Aurélien MANCA e2616fcd5d
fix(css): add node support for external @import 2022-05-13 11:54:25 +02:00
Ivan Kopeykin d3c5d357cc add ImportMetaContextPlugin 2022-03-01 18:11:31 +03:00
Tobias Koppers 1489b91a98 allow to generate only exports for css in node
add more options to the DeterministicModuleIdsPlugin to allow to opt-in into a fixed mode

optimize module iterations for module id assignment
2022-01-19 15:17:01 +01:00
Tobias Koppers b9c6691ff5 bugfixes, external assets 2021-12-03 16:23:09 +01:00
Tobias Koppers 3c9801a549 add support for external css 2021-12-03 08:47:21 +01:00
Tobias Koppers 77b5589c1a css generation and hmr 2021-12-03 08:46:22 +01:00
Tobias Koppers a8b00f864c nitpicks 2021-10-25 12:21:14 +02:00
Tobias Koppers 4a1d4e6dba Merge branch 'main' into feat/lazy-compilation-backend-https-support 2021-10-25 12:18:53 +02:00
Tobias Koppers ba154bc741 refactor and add test case 2021-10-25 12:12:52 +02:00
Tobias Koppers ae52a74802 improve buildHttp
allow multiple configurations to write to the same lockfile
add allowedUris for allowlisting
add schema validation
2021-10-19 09:21:05 +02:00
Tobias Koppers 91b6972144 add memCache2 for mem caching with module/chunk ids 2021-10-05 15:08:18 +02:00
Tobias Koppers 3b48429eb5 add MemCache for memory caching per module which is invalidated when module or any referenced modules changes
add `experiments.cacheUnaffected`
add `cache.cacheUnaffected` (type: memory) resp `cache.memoryCacheUnaffected` (type: filesystem)
2021-09-24 15:23:29 +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
Chaz Gatian 537da95879 feat: add lazyCompilationBackend configuration
support customizing lazyCompilationBackend's port and server options

Fixes #14053, Fixes #14205
2021-09-16 10:47:04 -04: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 b6609a4f6b add `experiments.buildHttp`
allows to build remote resources
stores remote resources in a lockfile
2021-08-05 15:47:18 +02:00
Tobias Koppers 492055ae90 add cache compression 2021-07-02 07:05:13 +02:00
Tobias Koppers f7766875bc
Merge pull request #13649 from webpack/cache/automatic-store
store cache after large changes
2021-06-28 17:35:14 +02:00
Tobias Koppers 0a64c16a89 improve module support for WebWorkers 2021-06-28 12:30:25 +02:00
Tobias Koppers 142bc5610f store cache after large changes
detect larger changes automatically and use shorter timeout
2021-06-28 11:35:14 +02:00
Tobias Koppers a1f0d23dcc add `node-commonjs` external type to use `createRequire` for commonjs externals
for `module` externals, fallback to `import()` when not in module mode
2021-06-25 11:22:55 +02:00
Tobias Koppers 629f9f031c add support for module externals and automatic externals 2021-06-24 16:44:14 +02:00
Tobias Koppers 4da99d8254 add `module` library support, test and example
add test cases for `experiments.outputModule`
2021-06-23 14:49:14 +02:00
Tobias Koppers 766be5a3fd add cache.profile flag for more info about (de)serialization timings 2021-04-28 09:10:43 +02:00
Tobias Koppers 177736f59c avoid leaking unused memory in buffer backing stores in development mode 2021-04-20 15:22:16 +02:00
Tobias Koppers ea3e0a39ac add experiments.executeModule
rename runModule -> executeModule
improve error reporting
2021-04-12 12:27:55 +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
evilebottnawi 3237c5a670 fix: prefer provided external over built-in 2021-03-02 13:11:31 +03:00