@nuxt/webpack-builder-nightly 4.0.3-29238657.44c231ca → 4.0.3-29239547.98b82878
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 +4 -4
package/dist/index.mjs
CHANGED
|
@@ -1146,22 +1146,24 @@ const bundle = async (nuxt) => {
|
|
|
1146
1146
|
await nuxt.callHook(`${builder}:configResolved`, webpackConfigs);
|
|
1147
1147
|
const compilers = webpackConfigs.map((config) => {
|
|
1148
1148
|
const compiler = webpack(config);
|
|
1149
|
-
if (nuxt.options.dev) {
|
|
1149
|
+
if (nuxt.options.dev && compiler) {
|
|
1150
1150
|
compiler.outputFileSystem = mfs;
|
|
1151
1151
|
}
|
|
1152
1152
|
return compiler;
|
|
1153
1153
|
});
|
|
1154
1154
|
nuxt.hook("close", async () => {
|
|
1155
1155
|
for (const compiler of compilers) {
|
|
1156
|
-
await new Promise((resolve) => compiler
|
|
1156
|
+
await new Promise((resolve) => compiler?.close(resolve));
|
|
1157
1157
|
}
|
|
1158
1158
|
});
|
|
1159
1159
|
if (nuxt.options.dev) {
|
|
1160
|
-
await Promise.all(compilers.map((c) => compile(c)));
|
|
1160
|
+
await Promise.all(compilers.map((c) => c && compile(c)));
|
|
1161
1161
|
return;
|
|
1162
1162
|
}
|
|
1163
1163
|
for (const c of compilers) {
|
|
1164
|
-
|
|
1164
|
+
if (c) {
|
|
1165
|
+
await compile(c);
|
|
1166
|
+
}
|
|
1165
1167
|
}
|
|
1166
1168
|
};
|
|
1167
1169
|
async function createDevMiddleware(compiler) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/webpack-builder-nightly",
|
|
3
|
-
"version": "4.0.3-
|
|
3
|
+
"version": "4.0.3-29239547.98b82878",
|
|
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
|
-
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.0.3-
|
|
30
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.0.3-29239547.98b82878",
|
|
31
31
|
"autoprefixer": "^10.4.21",
|
|
32
32
|
"css-loader": "^7.1.2",
|
|
33
33
|
"css-minimizer-webpack-plugin": "^7.0.2",
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"url-loader": "^4.1.1",
|
|
62
62
|
"vue-bundle-renderer": "^2.1.2",
|
|
63
63
|
"vue-loader": "^17.4.2",
|
|
64
|
-
"webpack": "^5.
|
|
64
|
+
"webpack": "^5.101.0",
|
|
65
65
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
66
66
|
"webpack-dev-middleware": "^7.4.2",
|
|
67
67
|
"webpack-hot-middleware": "^2.26.1",
|
|
68
68
|
"webpackbar": "^7.0.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.0.3-
|
|
71
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.0.3-29239547.98b82878",
|
|
72
72
|
"@rspack/core": "1.4.11",
|
|
73
73
|
"@types/webpack-bundle-analyzer": "4.7.0",
|
|
74
74
|
"@types/webpack-hot-middleware": "2.25.9",
|