We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8965f7 commit eb73f11Copy full SHA for eb73f11
components/root-pack.js
@@ -2,5 +2,7 @@
2
// Replacement for __dirname for root directory
3
//
4
5
-const config = global.MathJax?.config || {};
+import {MathJax} from '#js/components/global.js';
6
+
7
+const config = MathJax.config || {};
8
export const mjxRoot = () => config?.loader?.paths?.mathjax || config?.__dirname || '/';
0 commit comments