Repository navigation
Labels
area: optimizationTree-shaking, splitChunks, concatenation, ids (lib/optimize, lib/ids)Tree-shaking, splitChunks, concatenation, ids (lib/optimize, lib/ids)area: runtimeEmitted runtime and chunk loading across targets (lib/runtime, lib/web, lib/node, lib/esm)Emitted runtime and chunk loading across targets (lib/runtime, lib/web, lib/node, lib/esm)webpack-5Concerns the webpack 5 lineConcerns the webpack 5 line
Description
- Consuming build output at build time
-
Build output supports tree-shaking
-
Weird CommonJS modules are wrapped
-
💎
import()is statically analyse-able + import chunks withnew URL()instead of public path How to correctly parse the chunk resources in the library packaged by another webpack in webpack5? #15947 -
💎Nice CommonJS modules are converted to ESM
-
module-wide side-effect information is kept in build output (generate package.json? use
PUREflag?)
-
- Developer Expreience
- Inform (warn) the user about modules that are converted to strict mode
-
delete xin modules should be a build error as code is compiled in strict mode
- Use the platform
- load HMR manifest via
import()+ cache busting (mem leak? is fetch better?) - load HMR chunks via
import() - prefetch chunks/assets via module preload/prefetch +
new URL(...)
- load HMR manifest via
- Consuming build output at runtime
- 💎Live Bindings to entrypoint
- 💎Test case for circular dependency w/ external
- Other
- Preserve CSS Import - (@vankop more information)
- Preserve Reexport from Externals
- Preserve
new URL(),new Worker(). Maybe magic comment for this? - Support
workerChunkLoading: "module"fornodetarget
Reacted by Dmitriy Shekhovtsov, Isaac Johnston, silverwind, Vince Kálmán, Manish, Kai Zhang, Jay Harris, João Dias, andrew, Kholstinin Dmitry and 20 more
Reacted by Jiahan Chen, Isaac Johnston, Max Davidson, Manish, John Hill, Max, SUSHANT BANSAL and Vara Rahul Rajana
Metadata
Metadata
Assignees
Labels
area: optimizationTree-shaking, splitChunks, concatenation, ids (lib/optimize, lib/ids)Tree-shaking, splitChunks, concatenation, ids (lib/optimize, lib/ids)area: runtimeEmitted runtime and chunk loading across targets (lib/runtime, lib/web, lib/node, lib/esm)Emitted runtime and chunk loading across targets (lib/runtime, lib/web, lib/node, lib/esm)webpack-5Concerns the webpack 5 lineConcerns the webpack 5 line
Type
Fields
Priority
None yet
Start date
None yet
Target date
None yet
Effort
None yet
Projects
- StatusShow more project fieldsPriority - High
Activity
alexander-akait commentedon May 2, 2023
Related #2933, I will go through everything and add what we might have missed
webpack-bot commentedon Nov 25, 2023
This issue had no activity for at least three months.
It's subject to automatic issue closing if there is no activity in the next 15 days.
zackarychapple commentedon Nov 27, 2023
bumping to keep from closing.
0xUgochukwu commentedon Mar 27, 2024
hey, i'm intrested in working on this during the summer at GSoC
sarah-abeer commentedon Oct 3, 2024
please assign me this issue
varunsehgal02 commentedon Mar 2, 2025
hey, I'm intrested in working on this during the summer at GSoC.
Jaishree2310 commentedon Mar 3, 2025
I like this project idea and would like to work under GSOC.
I would appreciate some guidance to get started.
@alexander-akait , @snitin315
flying-pig007 commentedon Mar 3, 2025
I would like to work on this project under GSoC. I would appreciate it if you could grant me your permission
111 remaining items
feat: keep module side-effect information in the build output
feat: annotate every module instantiation webpack emits as a statement
test: cover the deferred module instantiations
chore: regenerate types for the annotation helper
fix: keep the side-effect annotations in a minified library
feat: report an entry whose exports a consumer cannot drop
chore: fold the changeset into one entry
test: build the annotation matcher without hand-rolled escaping
test: snapshot the deferred bundles and shorten the changeset
docs: tighten the annotation comments
test: name the deferred bundle snapshots
test: shorten the snapshot helper's JSDoc
fix: do not annotate the call that starts an entry
test: keep the deferred snapshots off the running node version
feat: keep module side-effect information in the build output (#21789)