Skip to content

Commit eb73f11

Browse files
committed
Fix problem with global variable in webpacked files
1 parent b8965f7 commit eb73f11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/root-pack.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
// Replacement for __dirname for root directory
33
//
44

5-
const config = global.MathJax?.config || {};
5+
import {MathJax} from '#js/components/global.js';
6+
7+
const config = MathJax.config || {};
68
export const mjxRoot = () => config?.loader?.paths?.mathjax || config?.__dirname || '/';

0 commit comments

Comments
 (0)