@rsbuild/plugin-react 1.0.1-beta.4 → 1.0.1-beta.5
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 +2 -2
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -99,7 +99,7 @@ var applyBasicReactSupport = (api, options) => {
|
|
|
99
99
|
);
|
|
100
100
|
};
|
|
101
101
|
var applyReactProfiler = (api) => {
|
|
102
|
-
api.
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
3
|
+
"version": "1.0.1-beta.5",
|
|
4
4
|
"description": "React plugin for Rsbuild",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "18.x",
|
|
30
30
|
"typescript": "^5.5.2",
|
|
31
|
-
"@rsbuild/core": "1.0.1-beta.
|
|
32
|
-
"@scripts/test-helper": "1.0.1-beta.
|
|
31
|
+
"@rsbuild/core": "1.0.1-beta.5",
|
|
32
|
+
"@scripts/test-helper": "1.0.1-beta.5"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@rsbuild/core": "^1.0.1-beta.0"
|