Skip to content

tntd/babel-plugin-tnt

Repository files navigation

babel-plugin-tnt

安装

npm install babel-plugin-tnt --save-dev

使用说明

// .babelrc
"plugins": [
    [
      "babel-plugin-tnt",
      {
        "library": "yournpm" // 支持数组["yournpm", "yournpm2"]
      }
    ],
  ]
  
// index.js
import { helloworld } from 'yournpm';

      ↓ ↓ ↓ ↓ ↓ ↓

var _helloworld = require('yournpm/lib/helloworld');

About

按需加载工具,library支持数组模式

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published