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

支持 es最新版 #2488

Open
Promisezhangbo opened this issue Apr 24, 2022 · 1 comment
Open

支持 es最新版 #2488

Promisezhangbo opened this issue Apr 24, 2022 · 1 comment

Comments

@Promisezhangbo
Copy link

怎么配置可选链操作符及空置合并操作符
const a = arr?.map((item) => item}
这个不支持
'@babel/plugin-proposal-optional-chaining', //可选链 ?.
'@babel/plugin-proposal-nullish-coalescing-operator' //空值合并 ??
这两个插件如何再dva项目中配置

@geekact
Copy link

geekact commented Apr 25, 2022

和dva无关系?需配置webpack里的babel,或者使用vite零配置即可支持这些特性。

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

2 participants