-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Vendor's code ES6 not work in IE11 #1089
Comments
You don't have to "polyfill vendors.[hash].js" - polyfills are applied globally. Usually, you just have to add this at the very top of `main.js import 'es6-promise/auto' |
@LinusBorg I know this is closed and old, but I've been searching this issue for a few days now trying to solve. Theoretically, every npm package pulled into our projects should be polyfilled? Continually getting syntax errors with IE11. The syntax error actually looks like it related to Added If it helps, my babelrc file looks like this:
Anything else I could I attempt? Thanks for your time. |
So, apparently this is a somewhat popular issue with babel's relationship to npm packages: A good catch-all solution I found is https://github.com/sheerun/targets-webpack-plugin but it does add a significant amount of time (and probably size) to your final bundle. |
My app contains vuejs (work), vue-resourse (not work).
When I tried to use es6-promise-polyfill in code, then app.[hash].js polyfilled and worked in IE11, but vendors.[hash].js not work. Babel-polyfill is not work eather.
How can I fix with problem? How can I polyfill vendors.[hash].js?
The text was updated successfully, but these errors were encountered: