Syntax error on IE11 when v3.4.1 is bundled by webpack
See original GitHub issueI have just updated from version 3.3 to 3.4 and noticed that index.cjs.js
is missing.
index.cjs.js
worked on IE11, but syntax error occurs version 3.4 index.js
Our project has to continue to support IE11…
After version 3.4, is the only way to support it to transpile index.js
by itself?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Syntax error in IE11 with Webpack, Babel and React
I'm getting a Syntax Error in my React + Redux project in Internet Explorer 11, but I have no idea why it's caused....
Read more >Syntax error 'SCRIPT1002' using internet explorer 11
I am facing an issue with the browser support in IE 11 of my reactjs project. Here is my code sample. What I...
Read more >Syntax error in IE11 with React + Babel + Webpack – iTecNote
I'm trying to get my React App with ES2015 functionalities running in IE >= 11 using Webpack + Babel. The setup is custom,...
Read more >To v5 from v4 - webpack
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >IE 11 Syntax error - Get Help - Vue Forum
The code apparantly was not transpiled to ES5 by babel, but should be - that's how the webpack template is configured. Chekc the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
v3.3 used the following webpack aliases.
As of now, the following two settings worked with IE11.
Use webpack resolve alias:
Use babel (transpile):
IMO: webpack resolve alias may be the best workaround. This way, even if webpack prioritizes ES modules, the same files will always be bundled. Transpiling with babel changes the post-transpiling state depending on the module resolved by webpack.
I think this is a minor issue as IE11 will be out of support for many products by August 2021.
I’m going to close it because there are workarounds.