@nuxt/webpack-builder 3.15.0 → 3.15.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.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -7
  2. package/package.json +5 -7
package/dist/index.mjs CHANGED
@@ -14,7 +14,6 @@ import querystring from 'node:querystring';
14
14
  import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
15
15
  import ForkTSCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
16
16
  import { env, nodeless } from 'unenv';
17
- import { cloneDeep } from 'lodash-es';
18
17
  import TimeFixPlugin from 'time-fix-plugin';
19
18
  import FriendlyErrorsWebpackPlugin from '@nuxt/friendly-errors-webpack-plugin';
20
19
  import escapeRegExp from 'escape-string-regexp';
@@ -128,9 +127,6 @@ function fileName(ctx, key) {
128
127
  }
129
128
  return fileName2;
130
129
  }
131
- function getWebpackConfig(ctx) {
132
- return cloneDeep(ctx.config);
133
- }
134
130
 
135
131
  function assets(ctx) {
136
132
  ctx.config.module.rules.push(
@@ -189,7 +185,7 @@ async function base(ctx) {
189
185
  ]);
190
186
  }
191
187
  function baseConfig(ctx) {
192
- ctx.config = {
188
+ ctx.config = defu({}, {
193
189
  name: ctx.name,
194
190
  entry: { app: [resolve(ctx.options.appDir, ctx.options.experimental.asyncEntry ? "entry.async" : "entry")] },
195
191
  module: { rules: [] },
@@ -207,7 +203,7 @@ function baseConfig(ctx) {
207
203
  output: getOutput(ctx),
208
204
  stats: statsMap[ctx.nuxt.options.logLevel] ?? statsMap.info,
209
205
  ...ctx.config
210
- };
206
+ });
211
207
  }
212
208
  function basePlugins(ctx) {
213
209
  ctx.config.plugins = ctx.config.plugins || [];
@@ -1010,7 +1006,7 @@ const bundle = async (nuxt) => {
1010
1006
  const ctx = createWebpackConfigContext(nuxt);
1011
1007
  ctx.userConfig = defu(nuxt.options.webpack[`$${preset.name}`], ctx.userConfig);
1012
1008
  await applyPresets(ctx, preset);
1013
- return getWebpackConfig(ctx);
1009
+ return ctx.config;
1014
1010
  }));
1015
1011
  await nuxt.callHook(`${builder}:config`, webpackConfigs);
1016
1012
  const mfs = nuxt.options.dev ? createMFS() : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/webpack-builder",
3
- "version": "3.15.0",
3
+ "version": "3.15.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -38,12 +38,11 @@
38
38
  "fork-ts-checker-webpack-plugin": "^9.0.2",
39
39
  "h3": "^1.13.0",
40
40
  "jiti": "^2.4.2",
41
- "lodash-es": "4.17.21",
42
41
  "magic-string": "^0.30.17",
43
42
  "memfs": "^4.14.1",
44
43
  "mini-css-extract-plugin": "^2.9.2",
45
44
  "ohash": "^1.1.4",
46
- "pathe": "^1.1.2",
45
+ "pathe": "^2.0.0",
47
46
  "pify": "^6.1.0",
48
47
  "postcss": "^8.4.49",
49
48
  "postcss-import": "^16.1.0",
@@ -55,7 +54,7 @@
55
54
  "time-fix-plugin": "^2.0.7",
56
55
  "ufo": "^1.5.4",
57
56
  "unenv": "^1.10.0",
58
- "unplugin": "^2.1.0",
57
+ "unplugin": "^2.1.2",
59
58
  "url-loader": "^4.1.1",
60
59
  "vue-bundle-renderer": "^2.1.1",
61
60
  "vue-loader": "^17.4.2",
@@ -64,17 +63,16 @@
64
63
  "webpack-dev-middleware": "^7.4.2",
65
64
  "webpack-hot-middleware": "^2.26.1",
66
65
  "webpackbar": "^7.0.0",
67
- "@nuxt/kit": "3.15.0"
66
+ "@nuxt/kit": "3.15.1"
68
67
  },
69
68
  "devDependencies": {
70
69
  "@rspack/core": "1.1.8",
71
- "@types/lodash-es": "4.17.12",
72
70
  "@types/pify": "5.0.4",
73
71
  "@types/webpack-bundle-analyzer": "4.7.0",
74
72
  "@types/webpack-hot-middleware": "2.25.9",
75
73
  "unbuild": "latest",
76
74
  "vue": "3.5.13",
77
- "@nuxt/schema": "3.15.0"
75
+ "@nuxt/schema": "3.15.1"
78
76
  },
79
77
  "peerDependencies": {
80
78
  "vue": "^3.3.4"