You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8bc561c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .changeset/010-concatenate-module-wrapping.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,4 @@
2
2
"webpack": minor
3
3
---
4
4
5
-
Wrap concatenated modules in lazy `__webpack_require__.cw` accessors and inline `require()` edges. A `require()` target and its whole transitive dependency closure are wrapped together, so nothing a lazily evaluated member depends on is scope-hoisted ahead of it. Set `optimization.concatenateModules: { commonjs: false }` to opt out of both.
5
+
Wrap concatenated modules in lazy `__webpack_require__.cw` accessors and inline `require()`.
* the body renders inside the lazy CJS wrapper with real module/exports instead of being scope-hoisted into the shared scope
8486
+
* the module's `require()` call is deferred behind an accessor instead of running at its own slot; unlike a wrapped concatenated member there is no body and no CJS wrapper, so any external may be wrapped
8487
8487
*/
8488
8488
wrapped: boolean;
8489
8489
8490
8490
/**
8491
-
* a wrapped body reached by an eager import edge, so its accessor is called at its own slot in evaluation order
8491
+
* a wrapped module reached by an eager import edge, so its accessor is called at its own slot in evaluation order
0 commit comments