Closed WinfredWang closed 5 years ago
I use dynamic import comonent , only occur in development mode.
https://github.com/WinfredWang/vue-cli3-multipage-demo/blob/master/src/p1/router.js#L20
Vue的多页面是指在router里面配置的多页面,本质还是一个页面,只是切换了路由。 而你这个更像是两个独立的页面,应该不是那么用的吧
@troy351 可以这样用。但是说的polyfill什么意思,没看懂。
@ghostcode 有两个页面p1.html (p1.js)和p2.html(p2.js),打包时promise垫片只打到了p1页面的p.js中,而p2页面的p2.js是没有这个垫片的,导致在IE11下报错。
Can't reproduce. Please try the latest release and see if the problem still occurs.
Closing due to inactivity for more than 1 week. Please open a new issue with a reference to this one if you can follow up with more information.
Version
3.1.1
Reproduction link
https://github.com/WinfredWang/vue-cli3-multipage-demo
Node and OS info
Node 8.12.0/npm 6.4.1
Steps to reproduce
1、clone https://github.com/WinfredWang/vue-cli3-multipage-demo
2、
npm install
2、
npm run serve
3、Open IE url:
http://localhost:8080/p1.html
http://localhost:8080/p2.html
4、click
About
linkWhat is expected?
p1 and p2 are all running normally
What is actually happening?
p.html1 or p2.html occur
Promise undefined
。两个页面p1.html (p1.js)和p2.html(p2.js),打包时promise polyfill 只打到了p1页面的p.js中,而p2页面的p2.js是没有这个垫片的,导致在IE11下报错。这种现象只在开发态出现,生产环境由于公共vendor被抽取到独立的js中了,所以不会有这种问题。