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
diff --git a/debian/nodejs/build b/debian/nodejs/build index fe2075d..6a1f594 100644 --- a/debian/nodejs/build +++ b/debian/nodejs/build @@ -3,7 +3,7 @@ # perl -ne '$t=1 if/<xsl:stylesheet/;print if $t;$t=0 if/^<\/xsl:stylesheet/' mml3.ts > mml3.xsl # ../../../../debian/build_modules/xslt3/xslt3.js -t -xsl:mml3.xsl -export:mml3.sef.json -nogo #) -tsc +tsc -t es6 mkdir -p js/input/asciimath/mathjax2/ js/input/mathml/mml3/ cp -r ts/input/asciimath/mathjax2/* js/input/asciimath/mathjax2/ cp ts/input/mathml/mml3/mml3.sef.json js/input/mathml/mml3/$$ e^{i \varphi} = \cos \varphi + i \sin \varphi $$
signature.asc
Description: PGP signature
-- Pkg-javascript-devel mailing list Pkg-javascript-devel@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel