This commit is contained in:
2024-10-30 20:34:48 +08:00
parent 719da67fe5
commit 78b4b31d46
12 changed files with 2468 additions and 46 deletions

View File

@ -1,7 +1,6 @@
import * as path from "path";
import { defineConfig } from "@rspack/cli";
import { rspack } from "@rspack/core";
import * as RefreshPlugin from "@rspack/plugin-react-refresh";
import { version } from "./package.json";
const isDev = process.env.NODE_ENV === "development";
@ -60,7 +59,6 @@ export default defineConfig({
react: {
runtime: "automatic",
development: isDev,
refresh: isDev,
},
},
},
@ -106,7 +104,6 @@ export default defineConfig({
minify: true,
chunks: ["popup"],
}),
isDev ? new RefreshPlugin() : null,
].filter(Boolean),
optimization: {
minimizer: [