babel-plugin-split-loading
v0.0.6
Published
> 一个简易的babel插件,能自动拆分导入的依赖包,项目内有example,可供参考
Downloads
5
Readme
babel-plugin-split-loading
一个简易的babel插件,能自动拆分导入的依赖包,项目内有example,可供参考
example
import {flatten,join} from 'lodash'
<!-- 转换为 -->
import flatten from 'lodash/flatten';
import join from 'lodash/join';
Installation
$ npm install --save babel-plugin-split-loading
Usage
"plugins": [
[
"split-loading",
{
"library": "lodash",//你需要自动拆分的包名
}
]
]
License
MIT © caozihao