-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
build后文件 ie11下报错(已查看issues前面的相似问题,不能解决) #5346
Labels
Comments
@chenshuai2144 不好意思 能麻烦看一下吗? |
删掉这个插件吧 |
sorrycc/blog#68 |
ie 不支持 es6 的
你的 target 没有配置吧 |
已经看了issues里相关的问题了,设置了target(最新版默认就有targets:{ie:11}),上面的报错都是在build之后,本地起服务访问dist文件夹所报的,知道热更新的时候是不支持ie的。 |
现在本地开发也能在 ie11 中拍起来了 |
我也试了,没鸟用 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述 [详细地描述问题,让大家都能理解]
1.当项目不打包 dev 情况下 360浏览器极速模式报错,build后360不报错
2.ie在dev和build后都是报错
报错原因未知
这是官网示例,在ie打开也报错。
已使用的方法:
1.设置targets为11
targets: {
ie: 11,
},
2.注释代码切割
// dynamicImport: {
// loadingComponent: './components/PageLoading/index',
// webpackChunkName: true,
// level: 3,
// },
3.设置代码切割的level为5
示例代码 [如果有必要,展示代码,线上示例,或仓库]
其他信息 [如截图等其他信息可以贴在这里]
在该项目自己只引入了两个额外的包,这两个包都很有名,想必应该对ie11兼容很好
The text was updated successfully, but these errors were encountered: