Integrate MathJax into SystemJS build

牧云@^-^@ 提交于 2019-12-06 00:38:51

Simply put, you cannot integrate MathJax like this (at this time).

MathJax inludes a custom dynamic module loader designed to work all the way down to IE6; unsurprisingly, it does not work with contemporary build tools.

But very likely you also don't want to integrate MathJax in its entirety because that comes in at a couple of dozen megabytes (compressed). Now, in practice, you don't need all components, typically developers need 1 input + 1 output + 1 set of fonts which comes down to around ~500-600KB (compressed).

If that's a feasible pay load, then you could look into building a customized single-file build (such as this one) which you should be able to integrate.

For what it's worth, compatibility with contemporary build tools is a deliverable for MathJax v3.0 next year.

Full disclosure: I'm part of the MathJax team.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!