¶ Inspecting bundle size
Parcel has builtin plugins for a few tools to help with analyzing bundle size.
¶ Bundle Analyzer
To generate a HTML file for every bundle, set the
PARCEL_BUNDLE_ANALYZER environment variable.
This generates a folder
parcel-bundle-reports in your project root with an HTML file for every target:
¶ Bundle Buddy
BUNDLE_BUDDY environment variable
and use the files (in the dist directory) on the Bundle Buddy website.