@rsbuild/plugin-react 0.3.9 → 0.3.11

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 CHANGED
@@ -35,7 +35,6 @@ __export(src_exports, {
35
35
  pluginReact: () => pluginReact
36
36
  });
37
37
  module.exports = __toCommonJS(src_exports);
38
- var import_core = require("@rsbuild/core");
39
38
 
40
39
  // src/antd.ts
41
40
  var import_shared = require("@rsbuild/shared");
@@ -209,7 +208,6 @@ var isBeyondReact17 = async (cwd) => {
209
208
  var PLUGIN_REACT_NAME = "rsbuild:react";
210
209
  var pluginReact = (options = {}) => ({
211
210
  name: PLUGIN_REACT_NAME,
212
- pre: [import_core.PLUGIN_SWC_NAME],
213
211
  setup(api) {
214
212
  if (api.context.bundlerType === "rspack") {
215
213
  applyBasicReactSupport(api, options);
package/dist/index.mjs CHANGED
@@ -13,9 +13,6 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
13
13
  import { fileURLToPath } from "url";
14
14
  import path from "path";
15
15
 
16
- // src/index.ts
17
- import { PLUGIN_SWC_NAME } from "@rsbuild/core";
18
-
19
16
  // src/antd.ts
20
17
  import { isServerTarget } from "@rsbuild/shared";
21
18
  var getAntdMajorVersion = (appDirectory) => {
@@ -199,7 +196,6 @@ var isBeyondReact17 = async (cwd) => {
199
196
  var PLUGIN_REACT_NAME = "rsbuild:react";
200
197
  var pluginReact = (options = {}) => ({
201
198
  name: PLUGIN_REACT_NAME,
202
- pre: [PLUGIN_SWC_NAME],
203
199
  setup(api) {
204
200
  if (api.context.bundlerType === "rspack") {
205
201
  applyBasicReactSupport(api, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-react",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
4
4
  "description": "React plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,18 +22,18 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@rspack/plugin-react-refresh": "0.5.2",
25
+ "@rspack/plugin-react-refresh": "0.5.3",
26
26
  "react-refresh": "^0.14.0",
27
- "@rsbuild/shared": "0.3.9"
27
+ "@rsbuild/shared": "0.3.11"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "16.x",
31
31
  "typescript": "^5.3.0",
32
- "@rsbuild/core": "0.3.9",
33
- "@scripts/test-helper": "0.3.9"
32
+ "@rsbuild/core": "0.3.11",
33
+ "@scripts/test-helper": "0.3.11"
34
34
  },
35
35
  "peerDependencies": {
36
- "@rsbuild/core": "^0.3.9"
36
+ "@rsbuild/core": "^0.3.11"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public",