@mindev/min-async-function
v1.0.0
Published
min async function support
Downloads
4
Readme
Min 中使用 async/await
安装
- async-function
$ npm install @mindev/min-async-function --save
- babel
$ npm install babel-preset-env --save-dev
$ npm install babel-plugin-syntax-export-extensions --save-dev
$ npm install babel-plugin-transform-export-extensions --save-dev
引用
- app.wxa
import '@mindev/min-async-function';
配置babel编译器
- min.config.json
{
"compilers": {
"babel": {
"presets": [
"env"
],
"plugins": [
"syntax-export-extensions",
"transform-export-extensions"
]
}
}
}
配置小程序开发者工具
- 关闭 es6 转 es5