I’m trying to figure out how to extract some information from
babel compilation process.
More specifically, when I run
babel (no matter if using Webpack’s
babel-loader, test frameworks’ transformers, Babel’s CLI, etc) I’d need to extract some information for each compiled file. Like:
- file path
- time taken to compile
- any other meta data?
What I’ve tried so far
Speed Measure Plugin for Webpack (link)
Works fine but it provides only Webpack’s loaders running time. No info about single compiled files.
Hook into Webpack’s compiler/compilation instance
I considered writing a Webpack plugin to hook into the compilation process as described here, but I couldn’t find the proper hooks to recognize a file being processed by
Get this bounty!!!