You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like babel doesn't transpile es6 arrow functions from modules in node_modules.
How to replicate the issue:
Create new app with create-razzle-app
npm install --save split-on-first
Add import splitOnFirst from 'split-on-first' to src/client.js
npm run build
npm run start:prod
In build/public/static/js/bundle.xxxxxxxx.js can be found
... "use strict"; e.exports=(e,t)=>{ if("string"!==typeof e||"string"!==typeof t) throw new TypeError("Expected the arguments to be of type string");
...
And in IE11's console we get "Syntax error in bundle.xxxxxxxx.js"
Looks like babel doesn't transpile es6 arrow functions from modules in node_modules.
How to replicate the issue:
Create new app with create-razzle-app
npm install --save split-on-first
Add
import splitOnFirst from 'split-on-first'
to src/client.jsnpm run build
npm run start:prod
In build/public/static/js/bundle.xxxxxxxx.js can be found
...
"use strict"; e.exports=(e,t)=>{ if("string"!==typeof e||"string"!==typeof t) throw new TypeError("Expected the arguments to be of type
string");
...
And in IE11's console we get "Syntax error in bundle.xxxxxxxx.js"
I put that sample in https://github.com/frei-0xff/razzle-ie11-issue
The text was updated successfully, but these errors were encountered: