Skip to content

Commit

Permalink
fix: resolve TypeScript type errors (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robot-Inventor authored Nov 17, 2024
1 parent ff894f0 commit ae14b2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rspack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class RunCommandsPlugin {

isFirstRun = false;

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

const isProduction = process.env.NODE_ENV === "production";
const isProduction = process.env["NODE_ENV"] === "production";
/* eslint-disable sort-keys */
// eslint-disable-next-line max-lines-per-function
const config = defineConfig((env) => ({
Expand All @@ -89,7 +89,7 @@ const config = defineConfig((env) => ({
entry: {
"./chrome/js/index.js": "./src/ts/index.ts",
"./firefox/js/index.js": "./src/ts/index.ts",
...(env.updateUserScripts ? { "../index.user.js": "./src/ts/index.ts" } : {})
...(env["updateUserScripts"] ? { "../index.user.js": "./src/ts/index.ts" } : {})
},
output: {
filename: "[name]",
Expand Down

0 comments on commit ae14b2e

Please sign in to comment.