Commit Graph

8579 Commits

Author SHA1 Message Date
Tim Fish 5e2d5068b9 Merge remote-tracking branch 'upstream/main' into feat/inject-debug-ids 2024-11-11 17:21:29 +01:00
Tim Fish 55af197bdf Add top level debug-ids option 2024-11-11 16:22:06 +01:00
alexander.akait 640be2f1fe fix: logic 2024-11-08 17:37:19 +03:00
Tim Fish c8cc6143c8 Remove top-level option 2024-11-08 14:17:14 +01:00
Tim Fish 6476f0de02 feat: Add support for injecting debug IDs 2024-11-08 13:49:08 +01:00
alexander.akait bc6ef39a9e feat: `@value` in CSS modules 2024-11-07 22:25:16 +03:00
alexander.akait 23228c8c50 feat: parse `:import` 2024-11-06 22:14:10 +03:00
Arka Pratim Chaudhuri 156e94585f chore: move check out of RuntimeTemplate 2024-11-05 22:41:51 +05:30
alexander.akait 47adff9e94 fix: variable name conflict with concatenate and runtime code 2024-11-05 18:29:13 +03:00
Arka Pratim Chaudhuri 4c35dc5d33 chore: license lint 2024-11-03 20:41:56 +05:30
Arka Pratim Chaudhuri 72bf754d5e fixes: #18687
fix: produces correct code when 'output.iife' is false & 'output.library.type' is 'umd', & it gives a warning to the users.
2024-11-03 20:24:46 +05:30
alexander.akait 31062ff7b1 test: `import` tests from css-loader 2024-11-01 22:50:50 +03:00
alexander.akait 1f14082a14 test: `url` tests from css-loader 2024-11-01 22:04:52 +03:00
alexander.akait 753f051509 fix: don't add `[uniqueName]` to `localIdentName` when it is empty 2024-11-01 20:15:02 +03:00
alexander.akait 5e09d0e05f feat: added `url` and `import` options for CSS 2024-11-01 18:43:21 +03:00
alexander.akait 9e190d738a fix: crash with filesystem cache and unknown scheme 2024-11-01 15:55:51 +03:00
alexander.akait 5c556e32c5 fix: types regression in validate 2024-11-01 13:48:22 +03:00
alexander.akait b07142f672 refactor: module source types code 2024-11-01 00:14:05 +03:00
ScriptedAlchemy 69dd27e3a6 fix: Module Federation should track all referenced chunks 2024-10-31 10:14:08 -07:00
alexander.akait db323536f2 refactor: code 2024-10-31 20:04:57 +03:00
alexander.akait 79b8f00ea5 refactor: update acorn 2024-10-31 18:32:03 +03:00
alexander.akait b520904482 refactor: udate acorn 2024-10-31 18:32:03 +03:00
alexander.akait dd83eea98d refactor: code 2024-10-31 18:18:08 +03:00
alexander.akait 5cbb321d6a feat: export CSS and ESM runtime modules 2024-10-31 17:55:49 +03:00
alexander.akait d7292f45d2 fix: handle DataURI without `base64` word 2024-10-30 20:08:37 +03:00
Alexander Akait bea6384038
fix: hotUpdate chunk modified with new runtime should have correct runtime 2024-10-30 17:29:43 +03:00
jserfeng 03f8bf71bf fix: hotUpdate chunk modified with new runtime should have correct runtime 2024-10-30 18:02:57 +08:00
alexander.akait 6589de0b63 fix: types 2024-10-24 21:13:59 +03:00
alexander.akait 0d5476df4f fix: types 2024-10-24 17:09:39 +03:00
alexander.akait e10dcf597e fix: types 2024-10-24 06:02:20 +03:00
alexander.akait 5ac0434184 fix: types 2024-10-24 00:41:15 +03:00
alexander.akait e11f2eaab4 fix: types 2024-10-24 00:07:47 +03:00
alexander.akait 8b864dbe81 fix: types 2024-10-23 23:30:31 +03:00
alexander.akait bb39c021af fix: no extra runtime for external asset modules in CSS 2024-10-23 21:28:40 +03:00
Alexander Akait 152cb00181
fix: order of chunks ids in generated chunk code 2024-10-23 17:05:57 +03:00
alexander.akait 97c3e87540 fix: order 2024-10-23 16:35:48 +03:00
Alexander Akait 319576720c
fix: avoid generating extra js file when using asset module as entrypoint 2024-10-23 03:44:56 +03:00
alexander.akait 7ffa4eb81a fix: logic 2024-10-23 03:03:35 +03:00
alexander.akait b0b8515bd6 fix: logic 2024-10-23 00:28:42 +03:00
alexander.akait dacf3dcdc3 refactor: code 2024-10-22 18:23:22 +03:00
alexander.akait 93fc22de6a fix: logic 2024-10-22 17:47:48 +03:00
alexander.akait 420d0d0eed fix: avoid generating extra js file when using asset module as entrypoint 2024-10-22 17:26:00 +03:00
Alexander Akait 9903856854
feat: Single Runtime Chunk and Federation eager module hoisting 2024-10-21 19:18:14 +03:00
alexander.akait ecd9c58f92 test: fix 2024-10-17 18:11:14 +03:00
alexander.akait 9820e0b3d6 feat(css): basic support for `declaration` 2024-10-16 19:46:13 +03:00
alexander.akait d46dee8f83 feat(css): basic support for `url()` 2024-10-16 19:24:48 +03:00
alexander.akait afcf3bb8b1 feat(css): basic support for `image-set()` 2024-10-16 18:11:58 +03:00
alexander.akait 60c32d895e feat(css): basic support for `@import` 2024-10-16 17:57:45 +03:00
alexander.akait 5832888320 feat(css): implemented basic logic 2024-10-16 17:42:26 +03:00
alexander.akait d763634b9d fix: parsing comments 2024-10-16 16:22:42 +03:00
alexander.akait 6d7b769f2f fix(css): more 2024-10-16 06:04:30 +03:00
alexander.akait 1ff9185ad3 fix(css): urls parsing 2024-10-16 05:33:52 +03:00
Alexander Akait b81de39316
fix(css): nesting in css modules 2024-10-15 21:23:38 +03:00
alexander.akait 7f47cad728 fix(css): nesting in css modules 2024-10-15 20:53:58 +03:00
Alexander Akait 5956daa300
chore: udpate dependencies 2024-10-15 16:21:51 +03:00
ScriptedAlchemy eab8815c05 chore: apply hoist plugin 2024-10-14 15:07:57 -07:00
Zack Jackson aae2519634
Merge branch 'webpack:main' into hoist-container-refs 2024-10-14 14:47:31 -07:00
Alexander Akait c801ebb253
fix: use optimistically logic for `output.environment.dynamicImport` to determine chunk format 2024-10-14 22:13:22 +03:00
Alexander Akait 18d6cb5afe
fix: collision with global variables for `avoidEntryIife` 2024-10-14 18:04:29 +03:00
Nitin Kumar eba41c692c chore: udpate dependencies 2024-10-14 08:32:08 +05:30
alexander.akait 291ebf8287 fix: logic 2024-10-13 21:53:22 +03:00
alexander.akait 5775d1fdf8 feat(css): always interpolate classes even if they are not involved in export 2024-10-13 21:06:01 +03:00
alexander.akait 5759a4af5a feat(css): `src()` support 2024-10-13 20:27:38 +03:00
alexander.akait e66f14fa1f fix(css): no extra runtime for node target 2024-10-13 19:46:16 +03:00
Alexander Akait 644d8170a0
fix(css): avoid extra runtime for assets modules 2024-10-13 16:20:29 +03:00
alexander.akait 8c43febb2f fix: logic for assets 2024-10-12 20:49:07 +03:00
alexander.akait 0ba37443e6 fix: logic for asset/source 2024-10-12 17:04:12 +03:00
alexander.akait a7e5e6a02b fix: logic for asset/source 2024-10-12 15:22:36 +03:00
alexander.akait 5ad5c12ffe fix: data URI logic 2024-10-12 14:23:36 +03:00
alexander.akait d942ec64d3 fix: cache logic 2024-10-12 14:14:48 +03:00
alexander.akait 7d888ffe1d fix: logic 2024-10-12 13:45:07 +03:00
alexander.akait 6313616448 fix: external 2024-10-12 13:32:19 +03:00
alexander.akait 737c16cb11 fix: logic 2024-10-12 13:25:10 +03:00
Nitin Kumar f8690def6a fix: use `needs` in message to mach with documentation 2024-10-12 14:08:03 +05:30
Nitin Kumar 1e95fcb80f fix: use `needs` in message to mach with documentation 2024-10-12 14:04:53 +05:30
fi3ework bb10e4b5f0 fix: should avoid through variables in inlined module 2024-10-12 02:27:08 +08:00
alexander.akait df669cacca fix: logic 2024-10-11 18:08:56 +03:00
alexander.akait 3bc531bf52 fix: logic 2024-10-11 17:47:32 +03:00
alexander.akait 485f3d6758 fix(css): avoid extra runtime for assets modules 2024-10-11 17:24:53 +03:00
alexander.akait 5a3ce4e0d7 fix: logic 2024-10-10 18:37:04 +03:00
Nitin Kumar 4da89eddfd feat: allow template strings in `devtoolNamespace` 2024-10-10 18:11:58 +03:00
ScriptedAlchemy 5b6e2e3097 refactor: remove runtime chunk collector 2024-10-09 13:16:17 -07:00
ScriptedAlchemy 49a9968813 tests: add test case 2024-10-09 13:13:04 -07:00
alexander.akait db4a23ee9e style: fix 2024-10-09 13:13:04 -07:00
alexander.akait ddd92aba5d test: fix 2024-10-09 13:13:04 -07:00
ScriptedAlchemy 755bf161bc tests: add test case 2024-10-09 13:13:04 -07:00
ScriptedAlchemy af922431d2 chore: address comments 2024-10-09 13:13:04 -07:00
ScriptedAlchemy d0bfad35ae fix: rename hooks to be correct 2024-10-09 13:13:04 -07:00
Zack Jackson 07670cf9e8 Update ModuleFederationPlugin.js 2024-10-09 13:13:04 -07:00
ScriptedAlchemy 80a6b339c9 chore: add container hoisting plugin 2024-10-09 13:13:03 -07:00
ScriptedAlchemy 11f5b59ab2 fix: Container Reference Hoisting 2024-10-09 13:13:03 -07:00
alexander.akait f7b4db8f9b fix: emit a warning on broken `:local` and `:global` 2024-10-09 20:36:48 +03:00
alexander.akait 56e525bc15 fix: CSS Modules bugs 2024-10-09 13:22:06 +03:00
alexander.akait 30ccd1baa9 refactor: code 2024-10-09 13:22:04 +03:00
alexander.akait 94fa19ad68 refactor: code 2024-10-09 13:21:57 +03:00
alexander.akait 7fd36f908e refactor: code 2024-10-09 13:21:57 +03:00
alexander.akait 8dc4fabb69 fix: parsing bad urls 2024-10-09 08:39:40 +03:00
Alexander Akait b4924e0b37
refactor: css tokenizer accoring spec 2024-10-09 01:55:41 +03:00
alexander.akait 91fe52958c refactor: css 2024-10-09 01:09:16 +03:00
Alexander Akait 94feb93752
fix: `css/auto` considers a module depending on its filename as `css` (pure CSS) or `css/local` 2024-10-08 16:52:23 +03:00
alexander.akait 53fb6c9e8a test: fix 2024-10-04 19:32:45 +03:00
alexander.akait 675a6c02e6 fix: `css/auto` considers a module depending on its filename as `css` (pure CSS) or `css/local` 2024-10-04 18:19:57 +03:00
alexander.akait 9192eefa6c test: fix 2024-10-04 17:37:20 +03:00
alexander.akait d01ed0002a refactor: code 2024-10-04 17:22:04 +03:00
alexander.akait 9ad073028e fix: avoid extra runtime for get javascript/css chunk filename 2024-10-04 16:55:48 +03:00
alexander.akait 1a63020998 fix: avoid extra `prefetch` and `preload` JS runtime for CSS 2024-10-03 20:03:55 +03:00
alexander.akait c5edbaa399 fix: avoid extra runtime code for CSS 2024-10-02 19:05:39 +03:00
alexander.akait e9b92650cd fix: types 2024-10-02 04:21:28 +03:00
alexander.akait 4a3974da3f fix: use `module` chunk format as a fallback when `environment.dynamicImport` is optimistically supported 2024-10-02 01:16:52 +03:00
alexander.akait e60cff554a fix: types 2024-10-02 00:29:48 +03:00
alexander.akait 636b5c5dba fix: types 2024-10-02 00:18:10 +03:00
alexander.akait b3f89a33c8 fix: types 2024-09-30 22:05:27 +03:00
Alexander Akait b05a325dd1
fix: avoid cache invalidation using `ProgressPlugin` 2024-09-26 22:38:21 +03:00
alexander.akait 13dc07e996 test: added 2024-09-26 21:38:33 +03:00
alexander.akait c5eccb21ca fix: avoid cache invalidation using `ProgressPlugin` and `importModule` 2024-09-26 19:31:30 +03:00
alexander.akait a8dde9aa49 fix: increase parallelism when using `importModule` on the execution stage 2024-09-25 20:34:39 +03:00
alexander.akait c59a232de5 fix: correctly parsing `string` export and import 2024-09-25 19:02:23 +03:00
Alexander Akait 4866b0daf1
feat: added new `optimization.entryIife` option 2024-09-25 16:58:02 +03:00
Alexander Akait d90f6920f0
fix: merge duplicate chunks after split chunks 2024-09-25 16:32:53 +03:00
fi3ework c1a0a4666e fix(externals): distinguish “module” and “import” in “module-import” 2024-09-24 23:49:02 +08:00
Alexander Akait dae16ad11e
feat: pass output.hash* options to loader context 2024-09-20 17:38:27 +03:00
alexander.akait 75d185d27e feat: pass `output.hash*` options to loader context 2024-09-20 16:56:45 +03:00
alexander.akait 7fa2d12eb3 refactor: code 2024-09-20 15:52:48 +03:00
alexander.akait 0011ec130a refactor: code 2024-09-20 15:49:36 +03:00
alexander.akait 9414c40a17 fix: use content hash as `[base]` and `[name]` for extracted DataURI's 2024-09-20 14:23:38 +03:00
fi3ework 8354f16073 update pr 2024-09-20 00:24:31 +08:00
fi3ework 7bc06a3295 feat: add new optimization.entryIife config 2024-09-19 01:20:47 +08:00
alexander.akait 813058f3d8 fix: generate code correctly for dynamically importing the same file twice and destructuring 2024-09-10 22:52:10 +03:00
alexander.akait bbc2ea7516 fix: types for ts5.6 2024-09-10 21:32:49 +03:00
Mikhail Shipov 1b217a6d94 fix: add extra merge duplicates call after split chunks 2024-09-10 13:58:08 +03:00
Alexander Akait 80156db07e
fix: handle default for import context element dependency 2024-09-06 18:24:32 +03:00
jserfeng c2b9407c14 fix: decide processBlock by input block 2024-09-04 17:40:45 +08:00
ahabhgk b71ba80518 lint 2024-09-04 15:12:06 +08:00
ahabhgk 860eb4aa0b fix: handle default for import context element dependency 2024-09-04 15:03:38 +08:00
Alexander Akait 27cf3e59f5
revert: always add semicolon in concaten module and tweak 2024-09-03 15:33:28 +03:00
Alexander Akait c86ab4713f
fix: make EnvironmentPlugin defaultValues types less strict 2024-09-03 14:57:02 +03:00
jserfeng 2e994c848b perf(buildChunkGraph): avoid unneeded re-visit 2024-09-03 16:55:47 +08:00
Roman Gusev c5e197aa67 fix: add type hints 2024-08-28 00:37:17 +02:00
Roman Gusev d2c7a708d7 docs: update JSDoc types 2024-08-28 00:10:31 +02:00
fi3ework 4c35aa7eeb fix: always add semicolon in concaten module and tweak 2024-08-28 02:12:35 +08:00
fi3ework 362935e340 fix: ASI in concatenated module only when necessary 2024-08-27 00:22:25 +08:00
Alexander Akait 09543e7d8e
fix: hanging when attempting to read a symlink-like file that it can't read 2024-08-22 19:12:42 +03:00
alexander.akait ade5e4313f refactor: logic 2024-08-22 18:31:35 +03:00
Alexander Akait 955e057abc
security: fix DOM clobbering in auto public path 2024-08-22 15:05:07 +03:00
alexander.akait 2411661bd1 security: fix DOM clobbering in auto public path 2024-08-21 15:47:34 +03:00
Hana b8c03d4772
fix: unexpected asi generation with sequence expression 2024-08-21 16:32:04 +08:00
fi3ework 60f189871a fix: do not use heuristic fallback for "module-import" 2024-08-20 13:57:40 +08:00
fi3ework 66306aa456 Revert "fix: module-import get fallback from externalsPresets"
This reverts commit c951c982e3.
2024-08-19 19:50:35 +08:00
Ahmed Fasih 83c205745c fix: make lstatReadlinkAbsolute work when readlink fails 2024-08-15 22:34:18 -07:00
inottn 420cb39bdd fix: handle ASI for export declaration 2024-08-15 20:32:58 +08:00
Alexander Akait 844fe4b2fa
fix: ts types 2024-08-15 14:14:16 +03:00
alexander.akait a2b0f9bac0 fix: ts types 2024-08-14 21:38:08 +03:00
Alexander Akait 46cee28719
feat: support `webpackIgnore` for `new URL()` construction 2024-08-14 19:18:42 +03:00
Alexander Akait 71ce863569
fix: mangle destruction incorrect with export named default 2024-08-14 19:14:31 +03:00
alexander.akait 5cdd031fb6 feat: support `webpackIgnore` for `new URL()` construction 2024-08-14 16:58:10 +03:00
jserfeng 0d856a3553 fix: mangle destruction incorrect with export named default 2024-08-14 21:38:14 +08:00
Alexander Akait cb6ffaf38f
fix: handle ASI for export named declarations 2024-08-14 15:11:23 +03:00
Alexander Akait 62f4c687a6
refactor: module-import get fallback from externalsPresets 2024-08-14 15:10:51 +03:00
alexander.akait d28b92c80c fix: handle ASI for export named declarations 2024-08-14 14:47:21 +03:00
alexander.akait 3c675c5510 refactor: fix logic 2024-08-13 19:09:15 +03:00
alexander.akait f7fd4ae43a fix: `related` in asset stats is now always an array 2024-08-13 18:13:07 +03:00
fi3ework c951c982e3 fix: module-import get fallback from externalsPresets 2024-08-13 12:10:06 +08:00
alexander.akait 856f3a4bfb refactor: rebase 2024-08-12 17:12:05 +03:00
Alexander Akait d8b869fa92
Merge branch 'main' into feat/at_import_pathinfo_support 2024-08-12 17:08:27 +03:00
alexander.akait 7298d19d4a refactor: logic 2024-08-12 16:53:44 +03:00
faga fe51e3e48b feat: at_import pathinfo support 2024-08-12 02:17:52 +08:00
alexander.akait 0a76fa02d3 fix: types 2024-08-09 18:42:37 +03:00
alexander.akait 7fd8ffb271 fix: types 2024-08-08 20:03:17 +03:00
alexander.akait 1805436d3b fix: types 2024-08-07 21:59:26 +03:00
alexander.akait ff9e19809a fix: types 2024-08-07 19:14:54 +03:00
Alexander Akait 13560eac2e
fix: a lot of types 2024-08-06 18:38:15 +03:00
alexander.akait c6d1d15c83 test: fix tests 2024-08-06 17:49:07 +03:00
alexander.akait 98b3febf5e test: fix unit tests 2024-08-06 17:14:33 +03:00
alexander.akait adf2a6b7c6 fix: a lot of types 2024-08-06 06:08:48 +03:00
fi3ework 93aff0ca62 cr update 2024-08-05 23:13:57 +08:00
fi3ework c783012d91 rebase 2024-08-05 17:11:10 +08:00
fi3ework f22a965abd refactor: clean code 2024-08-05 17:04:47 +08:00
fi3ework 1d07f1fa95 refactor 2024-08-05 17:04:46 +08:00
alexander.akait 406ec4f7a8 refactor: simplify logic 2024-08-05 17:03:10 +08:00
fi3ework ce24bb03c2 feat: add new external type "module-import" 2024-08-05 17:03:09 +08:00
Alexander Akait 4047985205
fix: make `bigint` support optimistic when browserslist not found 2024-08-02 20:39:05 +03:00
alexander.akait eaab7e742c fix: skip `globalThis` 2024-08-02 20:20:10 +03:00
Alexander Akait 1ff2ba9a3d
fix: handle properly `data`/`http`/`https` protocols in source maps 2024-08-02 20:15:41 +03:00
alexander.akait c6c45f3313 refactor: code 2024-08-02 19:32:33 +03:00
alexander.akait 93743d233a refactor: code 2024-08-02 19:32:31 +03:00
alexander.akait b84d7956b5 refactor: code 2024-08-02 19:32:29 +03:00
alexander.akait c2b38a6bd6 refactor: improve code 2024-08-02 19:32:29 +03:00
alexander.akait 40151be78e refactor: improve code 2024-08-02 19:32:29 +03:00
alexander.akait 1fe55ac7b5 refactor: improve code 2024-08-02 19:32:27 +03:00
alexander.akait c802a98f58 style: improve 2024-08-02 19:32:22 +03:00
alexander.akait 312f7ae662 style: improve style of code 2024-08-02 19:32:14 +03:00
alexander.akait 9943f3506a style: improve style of code 2024-08-02 19:32:14 +03:00
alexander.akait 9e2ead389c fix: logic 2024-08-02 19:32:14 +03:00
alexander.akait 0b745968a2 style: improve style of code 2024-08-02 19:32:14 +03:00
alexander.akait b9d9a5d9ff style: improve style of code 2024-08-02 19:32:14 +03:00
alexander.akait 0a68cb16a4 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 ac0bd21801 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 5725254415 style: improve style of code 2024-08-02 19:32:14 +03:00