parcel-plugin-bundle-visualiser icon indicating copy to clipboard operation
parcel-plugin-bundle-visualiser copied to clipboard

Doesn't work with --experimental-scope-hoisting

Open calebegg opened this issue 5 years ago • 2 comments

With tree shaking, the visualization shows nonsense results that match the pre-shook bundle size, like multiple 600kb files within 300kb bundles.

calebegg avatar Dec 27 '19 22:12 calebegg

Another variant of the nonsense output:

  • node_modules: 700KB
  • one of the directories inside node_modules 1.1MB.

This is a particularly troublesome problem, because it means the readily available tool for analyzing the bundle output, cannot be used to assess and investigate whether and to what extent optimization is working.

kylecordes avatar Feb 06 '20 03:02 kylecordes

To further the trouble, --experimental-scope-hoisting disables source map output, which prevents using other common non-parcel-specific tools to investigate bundle size and what is included.

kylecordes avatar Feb 06 '20 03:02 kylecordes