Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android版本的weex是否支持 async await语法? #3347

Open
hello-hxb opened this issue Oct 14, 2024 · 0 comments
Open

android版本的weex是否支持 async await语法? #3347

hello-hxb opened this issue Oct 14, 2024 · 0 comments

Comments

@hello-hxb
Copy link

android版本的weex是否支持 async await语法?
使用babel如下
"babel-core": "^6.26.0",
"babel-loader": "^7.1.1",
"babel-plugin-component": "^1.1.1",
"babel-plugin-module-resolver": "^4.1.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-preset-stage-0": "^6.24.1",
"babel-runtime": "^6.26.0",

{
"compact": false,
"presets": [
"env",
"stage-0"
],
"plugins": [
[
"transform-runtime",
{
"helpers": false,
"polyfill": true,
"regenerator": true
}
],
[
"component",
{
"libraryName": "weex-ui",
"libDir": "packages",
"style": false
}
],
[
"module-resolver",
{
"alias": {
"^@/(.+)": "./src/\1"
}
}
]
]
}

weex compile 后会执行async修饰的函数,但是 then 和catch 不会执行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant