mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
[Do not review] Use MathJax 4.0.0-beta.3
This commit is contained in:
parent
ef0fcc1537
commit
baf3ab7d81
6 changed files with 263 additions and 104 deletions
10
scripts/beta-mathjax-import-paths.js
Normal file
10
scripts/beta-mathjax-import-paths.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
// When building MathJax 4.0-beta from source within the Excalidraw tree, some
|
||||
// import paths don't properly translate from `ts/` to `mjs/`. This makes the
|
||||
// Excalidraw build process parse MathJax TypeScript files. The resulting error
|
||||
// messages do not occur if MathJax was built from source outside the
|
||||
// Excalidraw tree. The following regexp eliminates those error messages.
|
||||
require("replace-in-file").sync({
|
||||
files: "node_modules/mathjax-full/mjs/**/*",
|
||||
from: /mathjax-full\/ts/g,
|
||||
to: "mathjax-full/mjs",
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue