@dsyd/babel-plugin-ds
v1.0.1
Published
babel按需加载插件
Downloads
8
Readme
@dsyd/babel-plugin-ds
安装
npm install @dsyd/babel-plugin-ds --save-dev
使用说明
// .babelrc
"plugins": [
[
"@dsyd/babel-plugin-ds",
{
"library": "yournpm" // 支持数组["yournpm", "yournpm2"]
}
],
]
// index.js
import { helloworld } from 'yournpm';
↓ ↓ ↓ ↓ ↓ ↓
var _helloworld = require('yournpm/lib/helloworld');