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 89812e4
Browse filesBrowse the repository at this point in the historyBrowse files
* What a build recorded for the module graph to report as optimization bailouts, kept on the build info so a module restored from the cache still has it.
191
-
* @typedef {object} OptimizationBailoutRecord
192
-
* @property {string[]} reasons the bailouts as reported by the module graph
193
-
* @property {string=} sideEffect the statement whose side effect keeps the module in the bundle, as `type at location`
190
+
* What a build recorded for stats and the performance hints to report, kept on the build info so a module restored from the cache still has it.
191
+
* @typedef {object} BuildDiagnostics
192
+
* @property {string[]=} optimizationBailouts what parser plugins reported as optimization bailouts, replayed into the module graph of every compilation that reuses the module
193
+
* @property {string=} sideEffectStatement the statement whose side effect keeps the module in the bundle, as `type at location`
194
+
* @property {number=} ineffectivePureAnnotations how many `#__PURE__` annotations sit where the parser does not read them
195
+
* @property {number=} topLevelThis how many times the module reads `this` at its top level
196
+
* @property {boolean=} usesEval true when the module calls `eval` directly
197
+
* @property {string[]=} notCacheableReasons reasons why the module is not cacheable (e.g. paths of loaders that marked it)
194
198
*/
195
199
196
200
/**
197
201
* Defines the build info properties common to all module types.
198
202
* Module type specific properties live in the `Known*BuildInfo` typedef of the dedicated module class.
199
203
* @typedef {object} KnownBuildInfo
200
204
* @property {boolean=} cacheable
201
-
* @property {string[]=} notCacheableReasons reasons why the module is not cacheable (e.g. paths of loaders that marked it)
202
205
* @property {boolean=} strict
203
206
* @property {string=} moduleArgument
204
207
* @property {string=} exportsArgument
205
208
* @property {Record<string, Source>=} assets assets added by loaders or plugins
* @property {Set<string>=} topLevelDeclarations top level declaration names
208
211
* @property {boolean=} isCircular true when the module is part of a circular dependency chain
209
-
* @property {boolean=} usesEval true when the module calls `eval` directly
210
-
* @property {number=} ineffectivePureAnnotations how many `#__PURE__` annotations sit where the parser does not read them
211
-
* @property {number=} topLevelThis how many times the module reads `this` at its top level
212
212
* @property {boolean=} usesTopLevelAwaitForOf module uses top-level `for await…of` or `await using`, which can't be lowered to a generator
213
-
* @property {OptimizationBailoutRecord=} optimizationBailout what the build recorded for the module graph to report as optimization bailouts, replayed into every compilation that reuses the module
213
+
* @property {BuildDiagnostics=} diagnostics what the build recorded for stats and the performance hints to report
0 commit comments