Skip to content

Commit 40a47d4

Browse files
committed
upgrade dev and hot middlewares to newest versions (bugfixes?), and disable saveToDisk for dev middleware, since it might cause memory leaks (?)
1 parent 424b22f commit 40a47d4

File tree

3 files changed

+38
-51
lines changed

3 files changed

+38
-51
lines changed

src/packages/hub/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
"underscore": "^1.12.1",
6868
"uuid": "^8.3.2",
6969
"validator": "^13.6.0",
70-
"webpack-dev-middleware": "^6.1.2",
71-
"webpack-hot-middleware": "^2.25.4",
70+
"webpack-dev-middleware": "^7.4.2",
71+
"webpack-hot-middleware": "^2.26.1",
7272
"ws": "^8.18.0"
7373
},
7474
"devDependenicesNotes": "For license and size reasons, we make @cocalc/crm a dev dependency so it is NOT installed unless explicitly installed as a separate step.",

src/packages/pnpm-lock.yaml

Lines changed: 36 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/packages/static/src/rspack.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,6 @@ export default function getConfig({ middleware }: Options = {}) {
217217
plugins,
218218
devServer: {
219219
hot: true,
220-
// https://dev.to/woovi/web-dev-efficiency-achieving-faster-builds-and-lower-memory-load-with-webpack-4cm8
221-
devMiddleware: {
222-
writeToDisk: true,
223-
},
224220
},
225221
};
226222

0 commit comments

Comments
 (0)