Skip to content
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

transpiler error in IE11 #1023

Closed
frei-0xff opened this issue May 31, 2019 · 1 comment
Closed

transpiler error in IE11 #1023

frei-0xff opened this issue May 31, 2019 · 1 comment

Comments

@frei-0xff
Copy link

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"

I put that sample in https://github.com/frei-0xff/razzle-ie11-issue

@frei-0xff
Copy link
Author

Looks like it's the same as #998. Closing.

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

No branches or pull requests

1 participant