Print the import-statement counts of the target package. It would be useful to track the refactor progress of immense libraries.
yarn add --dev import-stats-webpack-plugin
webpack.config.js
const ImportStatsPlugin = require('import-stats-webpack-plugin');
module.exports = {
// ...
plugins: [
new ImportStatsPlugin({ imports: ['antd'] })
]
}
name | type | default | description |
---|---|---|---|
imports | string[] | [] | target libraries |