Complexity analysis, provided by typhonjs-escomplex, for code loaded using webpack.
npm install complexity-loader --save-dev
Just add the loader to your webpack.config.js
like this:
module.exports = {
module: {
loaders: [
{
test: /\.js$/,
loaders: ['complexity-loader']
}
]
}
}
module.exports = {
module: {
loaders: [
{
test: /\.js$/,
// Run your ES6+ code through complexity-loader before
// babel (and other transforms)
loaders: ['babel-loader', 'complexity-loader']
}
]
}
}