@nuxt/rspack-builder 3.18.0 → 3.18.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.mjs +6 -4
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
|
@@ -1139,22 +1139,24 @@ const bundle = async (nuxt) => {
|
|
|
1139
1139
|
await nuxt.callHook(`${builder}:configResolved`, webpackConfigs);
|
|
1140
1140
|
const compilers = webpackConfigs.map((config) => {
|
|
1141
1141
|
const compiler = webpack(config);
|
|
1142
|
-
if (nuxt.options.dev) {
|
|
1142
|
+
if (nuxt.options.dev && compiler) {
|
|
1143
1143
|
compiler.outputFileSystem = mfs;
|
|
1144
1144
|
}
|
|
1145
1145
|
return compiler;
|
|
1146
1146
|
});
|
|
1147
1147
|
nuxt.hook("close", async () => {
|
|
1148
1148
|
for (const compiler of compilers) {
|
|
1149
|
-
await new Promise((resolve) => compiler
|
|
1149
|
+
await new Promise((resolve) => compiler?.close(resolve));
|
|
1150
1150
|
}
|
|
1151
1151
|
});
|
|
1152
1152
|
if (nuxt.options.dev) {
|
|
1153
|
-
await Promise.all(compilers.map((c) => compile(c)));
|
|
1153
|
+
await Promise.all(compilers.map((c) => c && compile(c)));
|
|
1154
1154
|
return;
|
|
1155
1155
|
}
|
|
1156
1156
|
for (const c of compilers) {
|
|
1157
|
-
|
|
1157
|
+
if (c) {
|
|
1158
|
+
await compile(c);
|
|
1159
|
+
}
|
|
1158
1160
|
}
|
|
1159
1161
|
};
|
|
1160
1162
|
async function createDevMiddleware(compiler) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/rspack-builder",
|
|
3
|
-
"version": "3.18.
|
|
3
|
+
"version": "3.18.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@nuxt/friendly-errors-webpack-plugin": "^2.6.0",
|
|
30
|
-
"@rspack/core": "^1.4.
|
|
30
|
+
"@rspack/core": "^1.4.11",
|
|
31
31
|
"autoprefixer": "^10.4.21",
|
|
32
32
|
"css-loader": "^7.1.2",
|
|
33
33
|
"css-minimizer-webpack-plugin": "^7.0.2",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"esbuild-loader": "^4.3.0",
|
|
37
37
|
"escape-string-regexp": "^5.0.0",
|
|
38
38
|
"file-loader": "^6.2.0",
|
|
39
|
-
"h3": "^1.15.
|
|
39
|
+
"h3": "^1.15.4",
|
|
40
40
|
"jiti": "^2.5.1",
|
|
41
41
|
"knitwork": "^1.2.0",
|
|
42
42
|
"magic-string": "^0.30.17",
|
|
43
|
-
"memfs": "^4.
|
|
43
|
+
"memfs": "^4.36.0",
|
|
44
44
|
"ohash": "^2.0.11",
|
|
45
45
|
"pathe": "^2.0.3",
|
|
46
46
|
"pify": "^6.1.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"pug-plain-loader": "^1.1.0",
|
|
53
53
|
"std-env": "^3.9.0",
|
|
54
54
|
"time-fix-plugin": "^2.0.7",
|
|
55
|
-
"ts-checker-rspack-plugin": "^1.1.
|
|
55
|
+
"ts-checker-rspack-plugin": "^1.1.5",
|
|
56
56
|
"ufo": "^1.6.1",
|
|
57
57
|
"unenv": "^2.0.0-rc.19",
|
|
58
58
|
"unplugin": "^2.3.5",
|
|
@@ -63,16 +63,16 @@
|
|
|
63
63
|
"webpack-dev-middleware": "^7.4.2",
|
|
64
64
|
"webpack-hot-middleware": "^2.26.1",
|
|
65
65
|
"webpackbar": "^7.0.0",
|
|
66
|
-
"@nuxt/kit": "3.18.
|
|
66
|
+
"@nuxt/kit": "3.18.1"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/pify": "6.1.0",
|
|
70
70
|
"@types/webpack-bundle-analyzer": "4.7.0",
|
|
71
71
|
"@types/webpack-hot-middleware": "2.25.9",
|
|
72
|
-
"rollup": "4.46.
|
|
72
|
+
"rollup": "4.46.2",
|
|
73
73
|
"unbuild": "3.6.0",
|
|
74
74
|
"vue": "3.5.18",
|
|
75
|
-
"@nuxt/schema": "3.18.
|
|
75
|
+
"@nuxt/schema": "3.18.1"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"vue": "^3.3.4"
|