Sharing and Tree shaking
Last updated
Was this helpful?
Last updated
Was this helpful?
Tree shaking is dead-code elimination.
Because the plugin doesn't know which the library part will use in another application, it disabled tree shaking. Therefore bundles become large.
For the solution, the plugin provides an usedExports option. It can be an array of import names to be used by another application. See the example in .