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

配置babel-polyfill来兼容IE9和10,但是各种配置都不成功,大佬能不能做一下IE的兼容啊 #56

Closed
593684204 opened this issue Aug 16, 2018 · 3 comments

Comments

@593684204
Copy link

跪求大佬更新一下IE9和IE10的兼容配置

@yezihaohao
Copy link
Owner

安装babel-polyfill,在webpack.config.dev.js和webpack.config.prod.js的entry增加配置

entry: [
'babel-polyfill',
paths.appIndexJs,
]

你测试下,我这没IE9

@593684204
Copy link
Author

我在webpack.config.dev.js和webpack.config.prod.js的entry增加配置entry: [
'babel-polyfill',
paths.appIndexJs,
]测试以后还是不行,然后又在index.js的顶部也import‘babel-polyfill’,同时安装了babel-preset-env,在package.json中添加了"babel": {
"presets": [
"env",
"react-app"
]
},可还是不行,报错为:
aaaaa5

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