@rsbuild/webpack 0.7.2 → 0.7.3

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.cjs CHANGED
@@ -148,10 +148,10 @@ async function modifyWebpackConfig(context, webpackConfig, utils) {
148
148
  utils
149
149
  );
150
150
  if (context.config.tools?.webpack) {
151
- modifiedConfig = (0, import_shared2.mergeChainedOptions)({
152
- defaults: modifiedConfig,
153
- options: context.config.tools.webpack,
154
- utils,
151
+ modifiedConfig = (0, import_shared2.reduceConfigsWithContext)({
152
+ initial: modifiedConfig,
153
+ config: context.config.tools.webpack,
154
+ ctx: utils,
155
155
  mergeFn: utils.mergeConfig
156
156
  });
157
157
  }
package/dist/index.js CHANGED
@@ -46,11 +46,11 @@ var __publicField = (obj, key, value) => {
46
46
  return value;
47
47
  };
48
48
 
49
- // ../../../node_modules/.pnpm/@modern-js+module-tools@2.50.0_eslint@9.4.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js
49
+ // ../../../node_modules/.pnpm/@modern-js+module-tools@2.51.0_eslint@9.4.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js
50
50
  import { fileURLToPath } from "url";
51
51
  import path from "path";
52
52
  var init_esm = __esm({
53
- "../../../node_modules/.pnpm/@modern-js+module-tools@2.50.0_eslint@9.4.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js"() {
53
+ "../../../node_modules/.pnpm/@modern-js+module-tools@2.51.0_eslint@9.4.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js"() {
54
54
  "use strict";
55
55
  }
56
56
  });
@@ -155,8 +155,8 @@ import {
155
155
  castArray,
156
156
  chainToConfig,
157
157
  debug,
158
- mergeChainedOptions,
159
- modifyBundlerChain
158
+ modifyBundlerChain,
159
+ reduceConfigsWithContext
160
160
  } from "@rsbuild/shared";
161
161
  async function modifyWebpackChain(context, utils, chain) {
162
162
  debug("modify webpack chain");
@@ -179,10 +179,10 @@ async function modifyWebpackConfig(context, webpackConfig, utils) {
179
179
  utils
180
180
  );
181
181
  if (context.config.tools?.webpack) {
182
- modifiedConfig = mergeChainedOptions({
183
- defaults: modifiedConfig,
184
- options: context.config.tools.webpack,
185
- utils,
182
+ modifiedConfig = reduceConfigsWithContext({
183
+ initial: modifiedConfig,
184
+ config: context.config.tools.webpack,
185
+ ctx: utils,
186
186
  mergeFn: utils.mergeConfig
187
187
  });
188
188
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/webpack",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "homepage": "https://rsbuild.dev",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,8 +28,8 @@
28
28
  "postcss": "^8.4.38",
29
29
  "tsconfig-paths-webpack-plugin": "4.1.0",
30
30
  "webpack": "^5.91.0",
31
- "@rsbuild/core": "0.7.2",
32
- "@rsbuild/shared": "0.7.2"
31
+ "@rsbuild/core": "0.7.3",
32
+ "@rsbuild/shared": "0.7.3"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/node": "18.x",
@@ -37,7 +37,7 @@
37
37
  "cli-truncate": "2.1.0",
38
38
  "patch-console": "1.0.0",
39
39
  "typescript": "^5.4.2",
40
- "@scripts/test-helper": "0.7.2"
40
+ "@scripts/test-helper": "0.7.3"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public",