[Pkg-javascript-devel] Bug#1068693: node-mathjax-full: "MathJax(?): class constructors must be invoked with 'new'"
Dmitry Shachnev
mitya57 at debian.org
Mon Dec 23 18:19:49 GMT 2024
Control: tags -1 + patch
Hi again!
On Sun, Dec 15, 2024 at 09:06:15PM +0300, Dmitry Shachnev wrote:
> https://caniuse.com/es6 says ES 6 is available for >98% of users, so perhaps
> we can just build for ES 6?
I tried this approach by passing "-t es6" to tsc. And it works!
In the attached simple HTML page, math renders fine.
One thing that bothers me is that we ship ES 6 code in a directory named es5,
but in my opinion it's better than shipping code which does not work at all.
Also, it looks like in mathjax-full 4.0.0-beta.7 the produced directories are
named "cjs" and "mjs" [1], so after upgrade we will have no such problem.
[1]: https://www.npmjs.com/package/mathjax-full/v/4.0.0-beta.7?activeTab=code
--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: es6.diff
Type: text/x-diff
Size: 556 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20241223/2e8baa8a/attachment.diff>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20241223/2e8baa8a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20241223/2e8baa8a/attachment.sig>
More information about the Pkg-javascript-devel
mailing list