Skip to content

Commit 4ad92d4

Browse files
authored
Merge pull request ShaMan123#80 from ShaMan123/mathjax-require-fix
fix(): workaround mathjax issue
2 parents e10bba8 + 152144c commit 4ad92d4

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/mathjax/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// fix https://github.com/mathjax/MathJax-src/issues/818
2+
import { version } from 'mathjax-full/package.json';
3+
// @ts-ignore
4+
global.PACKAGE_VERSION = version;
5+
16
export * from './Config';
27
export * from './MathjaxFactory';
38
export { default } from './MathjaxFactory';

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"es6"
88
], /* Specify library files to be included in the compilation. */
99
"allowJs": true, /* Allow javascript files to be compiled. */
10+
"resolveJsonModule": true,
1011
// "checkJs": true, /* Report errors in .js files. */
1112
"jsx": "react-native", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
1213
// "declaration": true, /* Generates corresponding '.d.ts' file. */

0 commit comments

Comments
 (0)