@rsbuild/plugin-react 1.0.1-beta.4 → 1.0.1-beta.6

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
@@ -99,7 +99,7 @@ var applyBasicReactSupport = (api, options) => {
99
99
  );
100
100
  };
101
101
  var applyReactProfiler = (api) => {
102
- api.modifyRsbuildConfig((config, { mergeRsbuildConfig }) => {
102
+ api.modifyEnvironmentConfig((config, { mergeEnvironmentConfig }) => {
103
103
  const enableProfilerConfig = {
104
104
  output: {
105
105
  minify: {
@@ -113,7 +113,7 @@ var applyReactProfiler = (api) => {
113
113
  }
114
114
  }
115
115
  };
116
- return mergeRsbuildConfig(config, enableProfilerConfig);
116
+ return mergeEnvironmentConfig(config, enableProfilerConfig);
117
117
  });
118
118
  api.modifyBundlerChain((chain) => {
119
119
  chain.resolve.alias.set("react-dom$", "react-dom/profiling");
package/dist/index.js CHANGED
@@ -77,7 +77,7 @@ var applyBasicReactSupport = (api, options) => {
77
77
  );
78
78
  };
79
79
  var applyReactProfiler = (api) => {
80
- api.modifyRsbuildConfig((config, { mergeRsbuildConfig }) => {
80
+ api.modifyEnvironmentConfig((config, { mergeEnvironmentConfig }) => {
81
81
  const enableProfilerConfig = {
82
82
  output: {
83
83
  minify: {
@@ -91,7 +91,7 @@ var applyReactProfiler = (api) => {
91
91
  }
92
92
  }
93
93
  };
94
- return mergeRsbuildConfig(config, enableProfilerConfig);
94
+ return mergeEnvironmentConfig(config, enableProfilerConfig);
95
95
  });
96
96
  api.modifyBundlerChain((chain) => {
97
97
  chain.resolve.alias.set("react-dom$", "react-dom/profiling");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-react",
3
- "version": "1.0.1-beta.4",
3
+ "version": "1.0.1-beta.6",
4
4
  "description": "React plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,14 +22,14 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@rspack/plugin-react-refresh": "1.0.0-alpha.5",
25
+ "@rspack/plugin-react-refresh": "1.0.0-beta.0",
26
26
  "react-refresh": "^0.14.2"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "18.x",
30
30
  "typescript": "^5.5.2",
31
- "@rsbuild/core": "1.0.1-beta.4",
32
- "@scripts/test-helper": "1.0.1-beta.4"
31
+ "@rsbuild/core": "1.0.1-beta.6",
32
+ "@scripts/test-helper": "1.0.1-beta.6"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@rsbuild/core": "^1.0.1-beta.0"