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

Restore IE11 support #5

Closed
mberlanda opened this issue Mar 9, 2018 · 1 comment
Closed

Restore IE11 support #5

mberlanda opened this issue Mar 9, 2018 · 1 comment

Comments

@mberlanda
Copy link
Owner

mberlanda commented Mar 9, 2018

Description

As per the ES6 compatibility table, IE11 does not support:

  • arrow functions
  • class
  • super
  • generators
  • almost any other improvement ...

Possible Solutions

Revert ES2015 Syntax

If we want to restore the backward compatibility to IE11, we should consider to refactor some javascript code. It should be mostly a matter of arrow functions:

// from
someFunc = (param) => { }
// back to
function someFunc(param){ }

The usage of arrow function was introduced in commit 4d6e7b5 #3

Use BabelJS

https://babeljs.io/docs/setup/#installation

@mberlanda
Copy link
Owner Author

rails/webpacker#1235

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

No branches or pull requests

1 participant