@rsbuild/plugin-react 0.0.28 → 1.0.0
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 +2 -2
- package/dist/index.mjs +3 -3
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -231,8 +231,8 @@ var isBeyondReact17 = async (cwd) => {
|
|
|
231
231
|
|
|
232
232
|
// src/index.ts
|
|
233
233
|
var pluginReact = () => ({
|
|
234
|
-
name: "
|
|
235
|
-
pre: ["
|
|
234
|
+
name: "rsbuild:react",
|
|
235
|
+
pre: ["rsbuild:swc"],
|
|
236
236
|
setup(api) {
|
|
237
237
|
if (api.context.bundlerType === "rspack") {
|
|
238
238
|
applyBasicReactSupport(api);
|
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
6
6
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
7
|
});
|
|
8
8
|
|
|
9
|
-
// ../../node_modules/.pnpm/@modern-js+module-tools@2.40.0_typescript@5.
|
|
9
|
+
// ../../node_modules/.pnpm/@modern-js+module-tools@2.40.0_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
|
|
10
10
|
import { fileURLToPath } from "url";
|
|
11
11
|
import path from "path";
|
|
12
12
|
|
|
@@ -217,8 +217,8 @@ var isBeyondReact17 = async (cwd) => {
|
|
|
217
217
|
|
|
218
218
|
// src/index.ts
|
|
219
219
|
var pluginReact = () => ({
|
|
220
|
-
name: "
|
|
221
|
-
pre: ["
|
|
220
|
+
name: "rsbuild:react",
|
|
221
|
+
pre: ["rsbuild:swc"],
|
|
222
222
|
setup(api) {
|
|
223
223
|
if (api.context.bundlerType === "rspack") {
|
|
224
224
|
applyBasicReactSupport(api);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-react",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "React plugin for Rsbuild",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@rspack/plugin-react-refresh": "0.
|
|
24
|
+
"@rspack/plugin-react-refresh": "0.4.0",
|
|
25
25
|
"react-refresh": "^0.14.0",
|
|
26
26
|
"semver": "^7.5.4",
|
|
27
|
-
"@rsbuild/shared": "0.0
|
|
27
|
+
"@rsbuild/shared": "1.0.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "^16",
|
|
31
31
|
"@types/semver": "^7.5.4",
|
|
32
|
-
"typescript": "^5.
|
|
33
|
-
"@rsbuild/core": "0.0
|
|
34
|
-
"@rsbuild/test-helper": "0.0
|
|
32
|
+
"typescript": "^5.3.0",
|
|
33
|
+
"@rsbuild/core": "1.0.0",
|
|
34
|
+
"@rsbuild/test-helper": "1.0.0"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public",
|