babel-plugin-clean-dead-imports
清除无用导入的 Babel 插件。
例子
In
; ;
Out
; ;
安装
yarn add babel-plugin-clean-dead-imports
使用
.babelrc
(推荐)
通过 .babelrc
通过命令行
babel --plugins babel-plugin-clean-dead-imports script.js
通过 Node API
;
清除无用导入的 Babel 插件。
In
; ;
Out
; ;
yarn add babel-plugin-clean-dead-imports
.babelrc
(推荐).babelrc
babel --plugins babel-plugin-clean-dead-imports script.js
;
npm i babel-plugin-clean-dead-imports
0
0.8.2
MIT
11 kB
9