@nuxt/webpack-builder 3.4.0 → 3.4.2
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 +21 -23
- package/package.json +7 -8
package/dist/index.mjs
CHANGED
|
@@ -102,7 +102,7 @@ const composableKeysPlugin = createUnplugin((options) => {
|
|
|
102
102
|
if (s.hasChanged()) {
|
|
103
103
|
return {
|
|
104
104
|
code: s.toString(),
|
|
105
|
-
map: options.sourcemap ? s.generateMap({
|
|
105
|
+
map: options.sourcemap ? s.generateMap({ hires: true }) : void 0
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
108
|
}
|
|
@@ -149,7 +149,7 @@ ${options.globalPublicPath} = buildAssetsURL();
|
|
|
149
149
|
`);
|
|
150
150
|
return {
|
|
151
151
|
code: s.toString(),
|
|
152
|
-
map: options.sourcemap ? s.generateMap({
|
|
152
|
+
map: options.sourcemap ? s.generateMap({ hires: true }) : void 0
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
155
|
};
|
|
@@ -373,28 +373,28 @@ function basePlugins(ctx) {
|
|
|
373
373
|
name: ctx.name,
|
|
374
374
|
color: colors[ctx.name],
|
|
375
375
|
reporters: ["stats"],
|
|
376
|
+
// @ts-expect-error TODO: this is a valid option for Webpack.ProgressPlugin and needs to be declared for WebpackBar
|
|
376
377
|
stats: !ctx.isDev,
|
|
377
378
|
reporter: {
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
379
|
+
reporter: {
|
|
380
|
+
change: (_, { shortPath }) => {
|
|
381
|
+
if (!ctx.isServer) {
|
|
382
|
+
nuxt.callHook("webpack:change", shortPath);
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
done: ({ state }) => {
|
|
386
|
+
if (state.hasErrors) {
|
|
387
|
+
nuxt.callHook("webpack:error");
|
|
388
|
+
} else {
|
|
389
|
+
logger.success(`${state.name} ${state.message}`);
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
allDone: () => {
|
|
393
|
+
nuxt.callHook("webpack:done");
|
|
394
|
+
},
|
|
395
|
+
progress({ statesArray }) {
|
|
396
|
+
nuxt.callHook("webpack:progress", statesArray);
|
|
390
397
|
}
|
|
391
|
-
},
|
|
392
|
-
allDone: () => {
|
|
393
|
-
nuxt.callHook("webpack:done");
|
|
394
|
-
},
|
|
395
|
-
// @ts-ignore
|
|
396
|
-
progress({ statesArray }) {
|
|
397
|
-
nuxt.callHook("webpack:progress", statesArray);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
}));
|
|
@@ -619,9 +619,7 @@ const getPostcssConfig = (nuxt) => {
|
|
|
619
619
|
postcssOptions = merge({}, defaultConfig(), postcssOptions);
|
|
620
620
|
loadPlugins(postcssOptions);
|
|
621
621
|
}
|
|
622
|
-
delete nuxt.options.webpack.postcss.order;
|
|
623
622
|
return {
|
|
624
|
-
// @ts-expect-error
|
|
625
623
|
sourceMap: nuxt.options.webpack.cssSourceMap,
|
|
626
624
|
...nuxt.options.webpack.postcss,
|
|
627
625
|
postcssOptions
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/webpack-builder",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"repository": "nuxt/nuxt",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@babel/core": "^7.21.4",
|
|
20
19
|
"@nuxt/friendly-errors-webpack-plugin": "^2.5.2",
|
|
21
20
|
"autoprefixer": "^10.4.14",
|
|
22
21
|
"css-loader": "^6.7.3",
|
|
@@ -28,33 +27,33 @@
|
|
|
28
27
|
"file-loader": "^6.2.0",
|
|
29
28
|
"fork-ts-checker-webpack-plugin": "^8.0.0",
|
|
30
29
|
"fs-extra": "^11.1.1",
|
|
30
|
+
"h3": "^1.6.4",
|
|
31
31
|
"hash-sum": "^2.0.0",
|
|
32
32
|
"lodash-es": "^4.17.21",
|
|
33
33
|
"magic-string": "^0.30.0",
|
|
34
34
|
"memfs": "^3.5.0",
|
|
35
35
|
"mini-css-extract-plugin": "^2.7.5",
|
|
36
36
|
"mlly": "^1.2.0",
|
|
37
|
-
"ohash": "^1.
|
|
37
|
+
"ohash": "^1.1.1",
|
|
38
38
|
"pathe": "^1.1.0",
|
|
39
39
|
"pify": "^6.1.0",
|
|
40
|
-
"postcss": "^8.4.
|
|
40
|
+
"postcss": "^8.4.23",
|
|
41
41
|
"postcss-import": "^15.1.0",
|
|
42
42
|
"postcss-loader": "^7.2.4",
|
|
43
43
|
"postcss-url": "^10.1.3",
|
|
44
|
-
"style-resources-loader": "^1.5.0",
|
|
45
44
|
"time-fix-plugin": "^2.0.7",
|
|
46
45
|
"ufo": "^1.1.1",
|
|
47
46
|
"unplugin": "^1.3.1",
|
|
48
47
|
"url-loader": "^4.1.1",
|
|
49
48
|
"vue-bundle-renderer": "^1.0.3",
|
|
50
49
|
"vue-loader": "^17.0.1",
|
|
51
|
-
"webpack": "^5.
|
|
50
|
+
"webpack": "^5.80.0",
|
|
52
51
|
"webpack-bundle-analyzer": "^4.8.0",
|
|
53
52
|
"webpack-dev-middleware": "^6.0.2",
|
|
54
53
|
"webpack-hot-middleware": "^2.25.3",
|
|
55
54
|
"webpack-virtual-modules": "^0.5.0",
|
|
56
55
|
"webpackbar": "^5.0.2",
|
|
57
|
-
"@nuxt/kit": "3.4.
|
|
56
|
+
"@nuxt/kit": "3.4.2"
|
|
58
57
|
},
|
|
59
58
|
"devDependencies": {
|
|
60
59
|
"@types/lodash-es": "^4.17.7",
|
|
@@ -64,7 +63,7 @@
|
|
|
64
63
|
"@types/webpack-virtual-modules": "^0.1.1",
|
|
65
64
|
"unbuild": "latest",
|
|
66
65
|
"vue": "3.2.47",
|
|
67
|
-
"@nuxt/schema": "3.4.
|
|
66
|
+
"@nuxt/schema": "3.4.2"
|
|
68
67
|
},
|
|
69
68
|
"peerDependencies": {
|
|
70
69
|
"vue": "^3.2.47"
|