-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
fix: transpile static js to IE 10 #2063
Conversation
@@ -5,57 +5,64 @@ | |||
* LICENSE file in the root directory of this source tree. | |||
*/ | |||
|
|||
/* eslint-disable prefer-arrow-callback */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is required to prevent ESLint rule auto fix like prefer-shorthand
.
Deploy preview for docusaurus-2 ready! Built with commit 89b7667 |
Deploy preview for docusaurus-preview ready! Built with commit 89b7667 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, it's tricky to have to remember to not write ES6 for these scripts :|
@yangshun Yeah. If the team does plan to change these files often, we can use If we are not going to change these files, then I would say just leave it as-is. |
Motivation
Transpile static JavaScript files to IE 10 support so that they does not bail on IE 10.
This Babel REPL is broken on IE 11 due to the client JavaScript requires ES6.
Have you read the [Contributing Guidelines on pull requests] (https://github.com/facebook/docusaurus/blob/master/CONTRIBUTING.md#pull-requests)?
Yep
Test Plan
Manually testing the generated website.
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)