treeShakingDir

The directory used to output tree-shaking shared fallback assets.

  • Type: string
  • Required: No
  • Default: undefined

When shared dependency tree shaking is enabled, Module Federation will extract the exports of unused shared modules. This option specifies the output directory for those fallback assets.