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

Update webpack configuration to downcompile SRE so es5 directory really is es5. (#899) #905

Closed
wants to merge 2 commits into from

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Feb 21, 2023

The current combined components in the es5 directory include SRE as is, which is ES6 (it includes class declarations and such), so the results are not actually ES5. This PR changes the webpack.common.js to force SRE to be down compiled, and add the needed regenerator-runtime library to make it work. This makes the resulting files larger, but does make them actual ES5 files.

Resolves issue #899.

@dpvc dpvc requested a review from zorkow February 21, 2023 14:38
@dpvc dpvc added this to the v4.0 milestone Feb 21, 2023
Copy link
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be easier to offer an es5 compiled SRE?

@dpvc
Copy link
Member Author

dpvc commented Mar 3, 2023

Looks like the next version of SRE is not going to be able to be down compiled to ES5, so I'm marking this as a draft for now.

We discussed making two versions of MathJax, and ES5 and ES6, so we can either go with only ES6, or have the ES5 not be fully ES5 (not too good), or have the ES5 version NOT include SRE by default.

@dpvc dpvc marked this pull request as draft March 3, 2023 16:31
@dpvc
Copy link
Member Author

dpvc commented Jun 28, 2023

Closing this, as the new ES6/ES5 configuration makes it unnecessary.

@dpvc dpvc closed this Jun 28, 2023
@dpvc dpvc deleted the issue899 branch July 6, 2023 18:39
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.

2 participants