Skip to content

Commit 881dff9

Browse files
committed
make pnpm watch actually work
1 parent 6bc4f14 commit 881dff9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/packages/static/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"webpack-measure-prod": "COCALC_OUTPUT=dist-prod-measure MEASURE=true pnpm webpack-prod",
1818
"build": "pnpm run build-dev && ./production-build.py",
1919
"build-dev": "pnpm run copy-css && cd src && ../../node_modules/.bin/tsc --build",
20-
"watch": "pnpm rspack build -m development -w",
20+
"watch": "NODE_ENV=development pnpm rspack build -w",
2121
"test": "pnpm exec jest",
2222
"prepublishOnly": "pnpm test"
2323
},

src/packages/static/src/plugins/define-constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function defineConstantsPlugin(registerPlugin, constants) {
1515
opts[key] = JSON.stringify(constants[key]);
1616
}
1717
registerPlugin(
18-
"DefinePlugin -- define frontend constants -- versions, modes, dates, etc.",
18+
"DefinePlugin -- define frontend constants -- versions, modes, dates, etc."+JSON.stringify(opts),
1919
new DefinePlugin(opts)
2020
);
2121
}

0 commit comments

Comments
 (0)