wepy-async-function

wepy async function support

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
wepy-async-function
1.4.74 years ago6 years agoMinified + gzip package size for wepy-async-function in KB

Readme

wepy 中使用async/await

安装

npm install wepy-async-function --save

引用

// app.wpy
import wepy from 'wepy';

import 'wepy-async-function';

配置wepy.config.js编译器

module.exports = {
    'compilers': {
        babel: {
            'presets': [
                'es2015',
                'stage-1'
            ],
            'plugins': [
                'transform-export-extensions',
                'syntax-export-extensions'
            ]
        }
    }
};