@wepy/babel-plugin-import-regenerator

2.1.0 • Public • Published

@wepy/babel-plugin-import-regenerator

Allow wepy to use Async Functions.

Installation

# Install regenerator-runtime dependence
$ npm install regenerator-runtime --save

# Install babel plugin 
$ npm install @wepy/babel-plugin-import-regenerator --save-dev

Usage

Put something like this in your wepy.config.js:

{
  ....
    compilers: {
      babel: {
        presets: [
          '@babel/preset-env'
        ],
        plugins: [
          '@wepy/babel-plugin-import-regenerator'
        ]
      }
    }
}

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @wepy/babel-plugin-import-regenerator

Weekly Downloads

80

Version

2.1.0

License

MIT

Unpacked Size

10.2 kB

Total Files

9

Last publish

Collaborators

  • dlhandsome
  • gcaufy