codecov / codecov-javascript-bundler-plugins

Set of bundler plugins that allow users to upload bundle stats to Codecov.
MIT License
4 stars 1 forks source link

Support Vercel ncc #84

Open AbhiPrasad opened 7 months ago

AbhiPrasad commented 7 months ago

https://github.com/vercel/ncc

Under the hood @vercel/ncc uses webpack, and emits a stats.json file. Example command: ncc build index.js -o dist --stats-out dist/stats.json.

The only viable option to do this is to make ncc to emit a stats file which we parse and transform into our schema. We lose the ability to do normalization if we do this though :(

There is a less pretty option here which involves monkeypatching, but just might be too much effort 😢