Bundle Analyzer docs are missing env var step
jhuleatt opened this issue · 1 comments
jhuleatt commented
I ran
parcel build index.html --reporter @parcel/reporter-bundle-analyzer
as specified in https://v2.parceljs.org/features/production/#inspecting-bundle-size. However, the parcel-bundle-reports
folder wasn't created. I had to set the PARCEL_BUNDLE_ANALYZER
with
export PARCEL_BUNDLE_ANALYZER=1
as explained in parcel-bundler/parcel#3779 (comment) before it worked.
mischnic commented
Looks like you aren't using the latest version of @parcel/reporter-bundle-analyzer