Skip to content

Commit 484905f

Browse files
fix: resolve TypeScript type errors
1 parent ff894f0 commit 484905f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rspack.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class RunCommandsPlugin {
6262

6363
isFirstRun = false;
6464

65-
if (this.env.updateUserScripts) {
65+
if (this.env["updateUserScripts"]) {
6666
exec("npx tsx ./script/addUserScriptComment.ts", (err, stdout) => {
6767
if (err) {
6868
// eslint-disable-next-line no-console
@@ -80,7 +80,7 @@ class RunCommandsPlugin {
8080
}
8181
}
8282

83-
const isProduction = process.env.NODE_ENV === "production";
83+
const isProduction = process.env["NODE_ENV"] === "production";
8484
/* eslint-disable sort-keys */
8585
// eslint-disable-next-line max-lines-per-function
8686
const config = defineConfig((env) => ({
@@ -89,7 +89,7 @@ const config = defineConfig((env) => ({
8989
entry: {
9090
"./chrome/js/index.js": "./src/ts/index.ts",
9191
"./firefox/js/index.js": "./src/ts/index.ts",
92-
...(env.updateUserScripts ? { "../index.user.js": "./src/ts/index.ts" } : {})
92+
...(env["updateUserScripts"] ? { "../index.user.js": "./src/ts/index.ts" } : {})
9393
},
9494
output: {
9595
filename: "[name]",

0 commit comments

Comments
 (0)