@rsbuild/plugin-react 0.2.10 → 0.2.12
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.js +3 -6
- package/dist/index.mjs +3 -6
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -166,12 +166,9 @@ var setupCompiler = (compiler) => {
|
|
|
166
166
|
if (!reactRefreshEntry) {
|
|
167
167
|
return;
|
|
168
168
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
...compiler.options.entry[key].import || []
|
|
173
|
-
];
|
|
174
|
-
}
|
|
169
|
+
new compiler.webpack.EntryPlugin(compiler.context, reactRefreshEntry, {
|
|
170
|
+
name: void 0
|
|
171
|
+
}).apply(compiler);
|
|
175
172
|
};
|
|
176
173
|
var applyBasicReactSupport = (api) => {
|
|
177
174
|
api.onAfterCreateCompiler(({ compiler: multiCompiler }) => {
|
package/dist/index.mjs
CHANGED
|
@@ -154,12 +154,9 @@ var setupCompiler = (compiler) => {
|
|
|
154
154
|
if (!reactRefreshEntry) {
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
...compiler.options.entry[key].import || []
|
|
161
|
-
];
|
|
162
|
-
}
|
|
157
|
+
new compiler.webpack.EntryPlugin(compiler.context, reactRefreshEntry, {
|
|
158
|
+
name: void 0
|
|
159
|
+
}).apply(compiler);
|
|
163
160
|
};
|
|
164
161
|
var applyBasicReactSupport = (api) => {
|
|
165
162
|
api.onAfterCreateCompiler(({ compiler: multiCompiler }) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
4
4
|
"description": "React plugin for Rsbuild",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@rspack/plugin-react-refresh": "0.4.
|
|
25
|
+
"@rspack/plugin-react-refresh": "0.4.5",
|
|
26
26
|
"react-refresh": "^0.14.0",
|
|
27
|
-
"@rsbuild/shared": "0.2.
|
|
27
|
+
"@rsbuild/shared": "0.2.12"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "16.x",
|
|
31
31
|
"typescript": "^5.3.0",
|
|
32
|
-
"@rsbuild/
|
|
33
|
-
"@rsbuild/
|
|
32
|
+
"@rsbuild/test-helper": "0.2.12",
|
|
33
|
+
"@rsbuild/core": "0.2.12"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public",
|