@rspack/dev-server 0.3.7 → 0.3.8
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/middleware.js +1 -1
- package/dist/server.js +1 -1
- package/package.json +4 -4
package/dist/middleware.js
CHANGED
|
@@ -29,7 +29,7 @@ function getRspackMemoryAssets(compiler, rdm) {
|
|
|
29
29
|
const filename = path.startsWith(publicPath)
|
|
30
30
|
? path.slice(publicPath.length)
|
|
31
31
|
: path.slice(1);
|
|
32
|
-
|
|
32
|
+
const buffer = (_a = compiler.getAsset(filename)) !== null && _a !== void 0 ? _a : (() => {
|
|
33
33
|
const { index } = rdm.context.options;
|
|
34
34
|
const indexValue = typeof index === "undefined" || typeof index === "boolean"
|
|
35
35
|
? "index.html"
|
package/dist/server.js
CHANGED
|
@@ -236,7 +236,7 @@ class RspackDevServer extends webpack_dev_server_1.default {
|
|
|
236
236
|
compilers.forEach(compiler => {
|
|
237
237
|
if (compiler.options.experiments.lazyCompilation) {
|
|
238
238
|
middlewares.push({
|
|
239
|
-
middleware: (req, res
|
|
239
|
+
middleware: (req, res) => {
|
|
240
240
|
if (req.url.indexOf("/lazy-compilation-web/") > -1) {
|
|
241
241
|
const path = req.url.replace("/lazy-compilation-web/", "");
|
|
242
242
|
if (fs_1.default.existsSync(path)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/dev-server",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Development server for rspack",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@types/ws": "8.5.3",
|
|
29
29
|
"fs-extra": "11.1.0",
|
|
30
30
|
"puppeteer": "19.4.0",
|
|
31
|
-
"@rspack/core": "0.3.
|
|
31
|
+
"@rspack/core": "0.3.8"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"chokidar": "3.5.3",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"webpack-dev-middleware": "6.0.2",
|
|
41
41
|
"webpack-dev-server": "4.13.1",
|
|
42
42
|
"ws": "8.8.1",
|
|
43
|
-
"@rspack/dev-server": "0.3.
|
|
44
|
-
"@rspack/plugin-react-refresh": "0.3.
|
|
43
|
+
"@rspack/dev-server": "0.3.8",
|
|
44
|
+
"@rspack/plugin-react-refresh": "0.3.8"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@rspack/core": "*"
|