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 😢
https://github.com/vercel/ncc
Under the hood
@vercel/ncc
uses webpack, and emits astats.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 😢