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 a905883
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: lib/optimize/ConcatenatedModule.js
+60-43Lines changed: 60 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -198,8 +198,8 @@ if (!ReferencerClass.prototype.PropertyDefinition) {
198
198
/**
199
199
* @typedef {object} ExternalModuleInfo
200
200
* @property {"external"} type
201
-
* @property {boolean} wrapped the body renders inside the lazy CJS wrapper with real module/exports instead of being scope-hoisted into the shared scope
202
-
* @property {boolean} eager a wrapped body reached by an eager import edge, so its accessor is called at its own slot in evaluation order
201
+
* @property {boolean} wrapped 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
202
+
* @property {boolean} eager a wrapped module reached by an eager import edge, so its accessor is called at its own slot in evaluation order
@@ -305,7 +305,7 @@ const subtractNonDeferAccess = (a, b) => a && !b;
305
305
/**
306
306
* @typedef {object} ConcatenationEntry
307
307
* @property {"concatenated" | "external"} type
308
-
* @property {boolean} wrapped the module renders inside the lazy CJS wrapper instead of being scope-hoisted
308
+
* @property {boolean} wrapped evaluation is deferred behind an accessor: a "concatenated" entry renders its body inside the lazy CJS wrapper instead of being scope-hoisted, an "external" entry only defers its `require()` call
0 commit comments