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

Convert ES6 JS files to ES5 #901

Closed
wants to merge 1 commit into from
Closed

Conversation

fr2019
Copy link

@fr2019 fr2019 commented Oct 23, 2019

Summary

When @glebm converted these files from CoffeeScript to JavaScript, he used ES6. These files break on older browsers like IE 11.

I transpiled them to ES5 using babel.

I think sticking to ES5 is a better solution than adding babel gem dependency complexity.

@glebm
Copy link
Contributor

glebm commented Oct 23, 2019

Why do you need to support IE11 in 2019?

@fr2019
Copy link
Author

fr2019 commented Oct 23, 2019

@glebm IE 11 is still at around ~3% usage: https://www.stetic.com/market-share/browser/ https://www.w3counter.com/globalstats.php

It also breaks rails assets:precompile if config.assets.js_compressor = :uglifier is set for that environment.

@fr2019 fr2019 closed this Feb 5, 2021
@fr2019 fr2019 deleted the es6-es5-fix branch February 5, 2021 18:37
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

Successfully merging this pull request may close these issues.

None yet

3 participants