-
-
Notifications
You must be signed in to change notification settings - Fork 48k
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
ant 使用dva脚手架构建项目,引用ant组件后,在IE浏览器中报错 对象不支持startwith #4418
Comments
@sorrycc dva-cli 默认没有 babel-runtime 么? |
有的。 |
runtime 估计没有对 node_modules 里的做处理,还是需要 polyfill. |
babel 现在是不对 node_modules 下的模块做处理的。 |
更合理的应该是 antd 自身 babel-plugin-transform-runtime 处理一下。。 |
这个可以做到下一个 minor 版本,去除 antd 对 polyfill 的依赖。 |
自身很难处理,因为最多只能把 dist 里的文件给处理好,如果用户直接依赖 https://github.com/facebook/fbjs 的源码就不行了。 |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
发生问题的环境是:
您做了什么?请提供尽可能详细的重现步骤。
您期待的结果是:
实际上的结果是:
可重现的在线演示
The text was updated successfully, but these errors were encountered: