first commit
This commit is contained in:
7
mathjax/node-main-setup.mjs
Normal file
7
mathjax/node-main-setup.mjs
Normal file
@@ -0,0 +1,7 @@
|
||||
import {createRequire} from 'module';
|
||||
global.require = createRequire(import.meta.url);
|
||||
|
||||
const path = require("path");
|
||||
|
||||
if (!global.MathJax) global.MathJax = {};
|
||||
global.MathJax.__dirname = path.dirname(new URL(import.meta.url).pathname);
|
||||
Reference in New Issue
Block a user