Skip to content

fish-uncle/babel-plugin-demand-loading

Repository files navigation

babel-plugin-demand-loading

version MIT PRs Welcome


下载支持

支持babel6、babel7

babel6 1.x.x

npm install babel-plugin-demand-loading@1 --save-dev

babel7 2.x.x

npm install babel-plugin-demand-loading@2 --save-dev

使用说明

// e.g.
// .babelrc
"plugins": [
    [
      "babel-plugin-demand-loading",
      {
        "library": "yournpm"
      },
      "syntax-decorators"
    ],
  ]
  
// index.js
import { helloworld } from 'yournpm';

      ↓ ↓ ↓ ↓ ↓ ↓

var _helloworld = require('yournpm/helloworld');
import {fromat} from 'yournpm';

Releases

No releases published

Packages

No packages published