-
I'm not sure which reporters are intended to be added via the CLI through --reporter and which aren't. I tried:
When I tried reporter-cli, it just output the same thing as what was already printed. So, I don't think that is intended for use with the CLI. reporter-bundle-analyzer didn't give print anything more than running without it and reporter-build-metrics just threw an error:
So are these internal reporters that are not supposed to be used via the command line? And the command line option is for other, external reporters not in the project? Thanks, ps. With Yarn the metrics reporter, the error is slightly different:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, reporter-cli is always added when using the parcel/packages/core/parcel/src/cli.js Lines 460 to 466 in b858801
https://v2.parceljs.org/features/production/#analyzing-bundle-sizes
|
Beta Was this translation helpful? Give feedback.
Yes, reporter-cli is always added when using the
parcel
CLI:parcel/packages/core/parcel/src/cli.js
Lines 460 to 466 in b858801
@parcel/reporter-bundle-analyzer
and@parcel/reporter-bundle-buddy
should work:https://v2.parceljs.org/features/production/#analyzing-bundle-sizes
@parcel/reporter-build-metrics
might be broken because it's not …