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

Improve build tools for use with third-party extensions. (mathjax/MathJax#3086) #997

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Aug 25, 2023

This PR makes minor changes to the build tools so that they work better for third-party extensions.

The first change makes the build command have a better default for the ts directory (is it now next to the js directory, no matter what its name is).

The changes to pack produce better results for the file list when packing a file (the [build] files, which are the ones from the actual extension, will be at the top of the list, and the [js] will now be applied to file even if they are not in a mjs/cjs directory.

The change to webpack.common.cjs makes sure that all references to mathjax-full/js are remapped to the appropriate mjs/cjs version (without this, some were not getting caught, causing unwanted mathjax files to be included in the final packed file).

Resolves some issue raised in mathjax/MathJax#3086.

@dpvc dpvc requested a review from zorkow August 25, 2023 16:30
@dpvc dpvc added this to the v4.0 milestone Aug 25, 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.

lgtm.

@dpvc dpvc merged commit 4d2f170 into develop Sep 15, 2023
@dpvc dpvc deleted the issue3086 branch September 15, 2023 12:13
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