From 43a190f9c04a93ef068c2562021a677eebfa9d5d Mon Sep 17 00:00:00 2001 From: Dup4 Date: Mon, 6 Jun 2022 22:54:07 +0800 Subject: [PATCH] fix: remove color v1 --- packages/mathjax-render/package.json | 5 +++++ packages/mathjax-render/src/common/AllPackages.ts | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/mathjax-render/package.json b/packages/mathjax-render/package.json index 3acc326..b748cc1 100644 --- a/packages/mathjax-render/package.json +++ b/packages/mathjax-render/package.json @@ -21,6 +21,11 @@ "import": "./dist/index.mjs", "types": "./dist/index.d.ts" }, + "./node": { + "require": "./dist/index.cjs", + "import": "./dist/index.mjs", + "types": "./dist/index.d.ts" + }, "./browser": "./dist/esm/browser/index.mjs" }, "browser": { diff --git a/packages/mathjax-render/src/common/AllPackages.ts b/packages/mathjax-render/src/common/AllPackages.ts index 805d69f..b8e0eab 100644 --- a/packages/mathjax-render/src/common/AllPackages.ts +++ b/packages/mathjax-render/src/common/AllPackages.ts @@ -38,7 +38,7 @@ import "mathjax-full/js/input/tex/verb/VerbConfiguration.js"; declare const MathJax: any; if (typeof MathJax !== "undefined" && MathJax.loader) { MathJax.loader.preLoad( - "input/tex-base", + "[tex]/base", "[tex]/action", "[tex]/ams", "[tex]/amscd", @@ -50,7 +50,6 @@ if (typeof MathJax !== "undefined" && MathJax.loader) { "[tex]/cancel", "[tex]/cases", "[tex]/centernot", - "[tex]/color", "[tex]/colortbl", "[tex]/colorv2", "[tex]/configmacros", @@ -89,7 +88,6 @@ export const AllPackages: string[] = [ "cancel", "cases", "centernot", - "color", "colortbl", "colorv2", "configmacros",