1.4.7 • Published 5 years ago

wepy-async-function v1.4.7

Weekly downloads
140
License
MIT
Repository
-
Last release
5 years ago

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'
            ]
        }
    }
};