Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

module.exports = vendor_a5a86878640dfc60743a; error in IE 11 #756

Closed
gaotter opened this issue Mar 14, 2017 · 1 comment
Closed

module.exports = vendor_a5a86878640dfc60743a; error in IE 11 #756

gaotter opened this issue Mar 14, 2017 · 1 comment

Comments

@gaotter
Copy link

gaotter commented Mar 14, 2017

I'm testing the React redux template, but are unable to get it to run in IE 11. It breaks at module.exports = vendor_a5a86878640dfc60743a as vendor_a5a86878640dfc60743a is undefined. Works fine in Chrome.

Edit: after looking some more i found that the vendor.js had element using .map(() => {}) that EI 11 did not like. I tried to { test: /.js?$/, use: 'babel-loader' } to the webpack.config.vendor.js and setting up the .babelrc to this "presets": [ "react", "es2015-ie" ]. That did not work very well. Is there a way of making the vendor.js support IE 11?

@SteveSandersonMS
Copy link
Member

We have issue #484 tracking the need for out-of-the-box IE11 support in the templates.

If you need to make your own app support IE11 quickly, I'd recommend referencing the core-js package (i.e., npm install --save core-js), and then putting import 'core-js/shim'; at the top of your boot-client.ts file. That package puts in polyfills for pretty much everything.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants