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