@rspack/cli 1.4.0-beta.0 → 1.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10 -13
- package/dist/index.mjs +10 -13
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -443,19 +443,16 @@ var __webpack_exports__ = {};
|
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
const result = compilerForDevServer.options.devServer ??= {};
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
];
|
|
457
|
-
};
|
|
458
|
-
}
|
|
446
|
+
const setupMiddlewares = result.setupMiddlewares;
|
|
447
|
+
const lazyCompileMiddleware = core_.rspack.experiments.lazyCompilationMiddleware(compiler);
|
|
448
|
+
result.setupMiddlewares = (middlewares, server)=>{
|
|
449
|
+
let finalMiddlewares = middlewares;
|
|
450
|
+
if (setupMiddlewares) finalMiddlewares = setupMiddlewares(finalMiddlewares, server);
|
|
451
|
+
return [
|
|
452
|
+
lazyCompileMiddleware,
|
|
453
|
+
...finalMiddlewares
|
|
454
|
+
];
|
|
455
|
+
};
|
|
459
456
|
result.hot = options.hot ?? result.hot ?? true;
|
|
460
457
|
result.host = options.host || result.host;
|
|
461
458
|
result.port = options.port || result.port;
|
package/dist/index.mjs
CHANGED
|
@@ -408,19 +408,16 @@ class ServeCommand {
|
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
const result = compilerForDevServer.options.devServer ??= {};
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
];
|
|
422
|
-
};
|
|
423
|
-
}
|
|
411
|
+
const setupMiddlewares = result.setupMiddlewares;
|
|
412
|
+
const lazyCompileMiddleware = core_.rspack.experiments.lazyCompilationMiddleware(compiler);
|
|
413
|
+
result.setupMiddlewares = (middlewares, server)=>{
|
|
414
|
+
let finalMiddlewares = middlewares;
|
|
415
|
+
if (setupMiddlewares) finalMiddlewares = setupMiddlewares(finalMiddlewares, server);
|
|
416
|
+
return [
|
|
417
|
+
lazyCompileMiddleware,
|
|
418
|
+
...finalMiddlewares
|
|
419
|
+
];
|
|
420
|
+
};
|
|
424
421
|
result.hot = options.hot ?? result.hot ?? true;
|
|
425
422
|
result.host = options.host || result.host;
|
|
426
423
|
result.port = options.port || result.port;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/cli",
|
|
3
|
-
"version": "1.4.0-beta.
|
|
3
|
+
"version": "1.4.0-beta.1",
|
|
4
4
|
"description": "CLI for rspack",
|
|
5
5
|
"homepage": "https://rspack.rs",
|
|
6
6
|
"bugs": "https://github.com/web-infra-dev/rspack/issues",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"execa": "^5.1.1",
|
|
49
49
|
"ts-node": "^10.9.2",
|
|
50
50
|
"typescript": "^5.8.3",
|
|
51
|
-
"@rspack/core": "1.4.0-beta.
|
|
51
|
+
"@rspack/core": "1.4.0-beta.1"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@rspack/core": "^1.0.0-alpha || ^1.x"
|