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

MathJax v4 compatibility #24

Merged
merged 16 commits into from
Sep 4, 2023
Merged

MathJax v4 compatibility #24

merged 16 commits into from
Sep 4, 2023

Conversation

pkra
Copy link
Owner

@pkra pkra commented Aug 10, 2023

Still getting errors but compiles ok.

  • add ESM build for nodejs
  • fix TS errors
  • build cjs and browser output
  • package: fix path for "main"

Resolves #23

@pkra pkra changed the title feat: initial TS conversion attempt MathJax v4 compatibility Aug 10, 2023
Switches to "resolved" folders in mathjax to avoid compilation issues
for client-side component.
* package: fix dependencies
* remove webpack-config.js; replaced by ./components/
* add ./components/ with MathJax v4 client-side build setup
  * config.json - the main configuration
  * img.js - magical import file
  * ./lib/img.js - build file
@pkra
Copy link
Owner Author

pkra commented Sep 4, 2023

Nice. The client-side build will go from 3.5KB (uncompressed) to 1.2KB since we don't down-compile anymore.

@pkra pkra merged commit b04eabf into main Sep 4, 2023
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.

MathJax v4 compatibility
1 participant