Type Alias: ExperimentalInlineCommonChunksOptions
- Type: {
exclude?:StringOrRegExp| ((id) =>boolean|void|undefined) | (StringOrRegExp| ((id) =>boolean|void|undefined))[];maxDuplicatedSize?:number;maxSize?:number; } - Experimental
Options for output.codeSplitting.experimentalInlineCommonChunks.
See the Inline Common Chunks guide for how inlining works, its tradeoffs, and compatibility with plugins.
This feature is experimental. Its behavior and option shape may change in any release.
Properties
exclude?
- Type:
StringOrRegExp| ((id) =>boolean|void|undefined) | (StringOrRegExp| ((id) =>boolean|void|undefined))[] - Optional
A matcher for module ids, or an array of them: a string (matched as a regular expression), a RegExp, or a function, each applied like test. A common chunk is not inlined when any of its modules matches any matcher.
maxDuplicatedSize?
- Type:
number - Optional
Keep a common chunk as a file when its size times the number of files beyond the first that would print a copy reaches this value. Size is measured as for maxSize.
Must be a non-negative safe integer or Infinity. Infinity removes the limit.
Default
InfinitymaxSize?
- Type:
number - Optional
Inline eligible automatic common chunks whose size is strictly smaller than this value. Size is the sum of their modules' sizes in bytes, before rendering, minification and compression. A module's size is the declaredModuleSize a load or transform hook returns, or else the size of its transformed source.
Must be a non-negative safe integer or Infinity. 0 disables inlining. Infinity removes the size limit.
Default
0