@nuxt/webpack-builder 3.17.7 → 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/README.md +1 -1
- package/dist/index.mjs +6 -4
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ It provides a number of features that make it easy to build fast, SEO-friendly,
|
|
|
44
44
|
Use the following command to create a new starter project. This will create a starter project with all the necessary files and dependencies:
|
|
45
45
|
|
|
46
46
|
```bash
|
|
47
|
-
npm create nuxt <my-project>
|
|
47
|
+
npm create nuxt@latest <my-project>
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
> [!TIP]
|
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/webpack-builder",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.18.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
"autoprefixer": "^10.4.21",
|
|
31
31
|
"css-loader": "^7.1.2",
|
|
32
32
|
"css-minimizer-webpack-plugin": "^7.0.2",
|
|
33
|
-
"cssnano": "^7.0
|
|
33
|
+
"cssnano": "^7.1.0",
|
|
34
34
|
"defu": "^6.1.4",
|
|
35
35
|
"esbuild-loader": "^4.3.0",
|
|
36
36
|
"escape-string-regexp": "^5.0.0",
|
|
37
37
|
"file-loader": "^6.2.0",
|
|
38
38
|
"fork-ts-checker-webpack-plugin": "^9.1.0",
|
|
39
|
-
"h3": "^1.15.
|
|
40
|
-
"jiti": "^2.
|
|
39
|
+
"h3": "^1.15.4",
|
|
40
|
+
"jiti": "^2.5.1",
|
|
41
41
|
"knitwork": "^1.2.0",
|
|
42
42
|
"magic-string": "^0.30.17",
|
|
43
|
-
"memfs": "^4.
|
|
44
|
-
"mini-css-extract-plugin": "^2.9.
|
|
43
|
+
"memfs": "^4.36.0",
|
|
44
|
+
"mini-css-extract-plugin": "^2.9.3",
|
|
45
45
|
"ohash": "^2.0.11",
|
|
46
46
|
"pathe": "^2.0.3",
|
|
47
47
|
"pify": "^6.1.0",
|
|
@@ -54,27 +54,27 @@
|
|
|
54
54
|
"std-env": "^3.9.0",
|
|
55
55
|
"time-fix-plugin": "^2.0.7",
|
|
56
56
|
"ufo": "^1.6.1",
|
|
57
|
-
"unenv": "^2.0.0-rc.
|
|
57
|
+
"unenv": "^2.0.0-rc.19",
|
|
58
58
|
"unplugin": "^2.3.5",
|
|
59
59
|
"url-loader": "^4.1.1",
|
|
60
|
-
"vue-bundle-renderer": "^2.1.
|
|
60
|
+
"vue-bundle-renderer": "^2.1.2",
|
|
61
61
|
"vue-loader": "^17.4.2",
|
|
62
|
-
"webpack": "^5.
|
|
62
|
+
"webpack": "^5.101.0",
|
|
63
63
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
64
64
|
"webpack-dev-middleware": "^7.4.2",
|
|
65
65
|
"webpack-hot-middleware": "^2.26.1",
|
|
66
66
|
"webpackbar": "^7.0.0",
|
|
67
|
-
"@nuxt/kit": "3.
|
|
67
|
+
"@nuxt/kit": "3.18.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@rspack/core": "1.4.
|
|
70
|
+
"@rspack/core": "1.4.11",
|
|
71
71
|
"@types/pify": "6.1.0",
|
|
72
72
|
"@types/webpack-bundle-analyzer": "4.7.0",
|
|
73
73
|
"@types/webpack-hot-middleware": "2.25.9",
|
|
74
|
-
"rollup": "4.
|
|
75
|
-
"unbuild": "3.
|
|
76
|
-
"vue": "3.5.
|
|
77
|
-
"@nuxt/schema": "3.
|
|
74
|
+
"rollup": "4.46.2",
|
|
75
|
+
"unbuild": "3.6.0",
|
|
76
|
+
"vue": "3.5.18",
|
|
77
|
+
"@nuxt/schema": "3.18.1"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"vue": "^3.3.4"
|