CODEBASE: Generate display data for math notation at built time and remove runtime mathjax dependency (#2447)

This commit is contained in:
catloversg
2026-01-18 05:41:24 +07:00
committed by GitHub
parent be16b2a375
commit c8e3eb2050
25 changed files with 910 additions and 584 deletions
-10
View File
@@ -5,7 +5,6 @@ const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
const ReactRefreshWebpackPlugin = require("@pmmmwh/react-refresh-webpack-plugin");
const CopyPlugin = require("copy-webpack-plugin");
/** @type {import("webpack-cli").CallableOption} */
module.exports = (env, argv) => {
@@ -124,15 +123,6 @@ module.exports = (env, argv) => {
module: true,
}),
enableReactRefresh && new ReactRefreshWebpackPlugin(),
new CopyPlugin({
patterns: [
{
from: "{tex-chtml.js,*/**/*}",
to: "mathjax",
context: "node_modules/mathjax-full/es5",
},
],
}),
].filter(Boolean),
target: "web",
entry: entry,