Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

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