Skip to content

Type Alias: ExperimentalInlineCommonChunksOptions ​

  • Type: { exclude?: StringOrRegExp | ((id) => boolean | void | undefined) | (StringOrRegExp | ((id) => boolean | void | undefined))[]; 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.


maxSize? ​

  • Type: number
  • Optional

Inline eligible automatic common chunks whose size is strictly smaller than this value. Size is the sum of their modules' transformed source sizes in bytes, before rendering, minification and compression.

Must be a non-negative safe integer or Infinity. 0 disables inlining. Infinity removes the size limit.

Default ​

ts
0

Was this page helpful?