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

babel7 该插件破坏了core-js的polyfill顺序 #606

Open
chaichunyang opened this issue Apr 8, 2022 · 2 comments
Open

babel7 该插件破坏了core-js的polyfill顺序 #606

chaichunyang opened this issue Apr 8, 2022 · 2 comments

Comments

@chaichunyang
Copy link

引入antd的ConfigProvider破坏了babel转换core-js的polyfill顺序,导致polyfill失败

import 'core-js/stable';//第一行polyfill

本来应该在最上面,这个插件把antd的引用提前到了polyfill前面。

@ldwonday
Copy link

这个问题啥时候可以解决啊!!!

@chaichunyang
Copy link
Author

这个问题啥时候可以解决啊!!!

polyfill放在入口,antd的引用写到内层可以绕开这个问题。希望有能力的大神能给解决吧

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