0.0.6 • Published 5 years ago

babel-plugin-split-loading v0.0.6

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

babel-plugin-split-loading NPM version Build Status

一个简易的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

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago