Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fish-uncle/babel-plugin-demand-loading
babel 插件按需加载
https://github.com/fish-uncle/babel-plugin-demand-loading
babel babel-plugin babel6 babel7
Last synced: about 14 hours ago
JSON representation
babel 插件按需加载
- Host: GitHub
- URL: https://github.com/fish-uncle/babel-plugin-demand-loading
- Owner: fish-uncle
- License: mit
- Created: 2019-02-26T09:23:26.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-30T06:49:19.000Z (over 3 years ago)
- Last Synced: 2024-11-06T18:53:11.144Z (about 2 months ago)
- Topics: babel, babel-plugin, babel6, babel7
- Language: JavaScript
- Homepage:
- Size: 37.1 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# babel-plugin-demand-loading
![version](https://img.shields.io/badge/version-v1.0.0-brightgreen.svg?style=flat-square) [![MIT](https://img.shields.io/dub/l/vibe-d.svg?style=flat-square)](http://opensource.org/licenses/MIT) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://reactjs.org/docs/how-to-contribute.html#your-first-pull-request)
---
### 下载支持
支持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';
```