@rsbuild/plugin-react 0.2.5 → 0.2.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.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { RsbuildPlugin } from '@rsbuild/core';
2
2
 
3
- declare const isBeyondReact17: (cwd: string) => Promise<boolean>;
3
+ declare const isBeyondReact17: (cwd: string) => Promise<any>;
4
4
 
5
5
  type SplitReactChunkOptions = {
6
6
  react?: boolean;
package/dist/index.js CHANGED
@@ -217,7 +217,7 @@ var applyBasicReactSupport = (api) => {
217
217
 
218
218
  // src/utils.ts
219
219
  var import_fs = __toESM(require("fs"));
220
- var import_semver = __toESM(require("semver"));
220
+ var import_semver = __toESM(require("@rsbuild/shared/semver"));
221
221
  var import_shared5 = require("@rsbuild/shared");
222
222
  var isBeyondReact17 = async (cwd) => {
223
223
  const pkgPath = await (0, import_shared5.findUp)({ cwd, filename: "package.json" });
package/dist/index.mjs CHANGED
@@ -205,7 +205,7 @@ var applyBasicReactSupport = (api) => {
205
205
 
206
206
  // src/utils.ts
207
207
  import fs from "fs";
208
- import semver from "semver";
208
+ import semver from "@rsbuild/shared/semver";
209
209
  import { findUp } from "@rsbuild/shared";
210
210
  var isBeyondReact17 = async (cwd) => {
211
211
  const pkgPath = await findUp({ cwd, filename: "package.json" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-react",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "React plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,15 +24,13 @@
24
24
  "dependencies": {
25
25
  "@rspack/plugin-react-refresh": "0.4.3",
26
26
  "react-refresh": "^0.14.0",
27
- "semver": "^7.5.4",
28
- "@rsbuild/shared": "0.2.5"
27
+ "@rsbuild/shared": "0.2.6"
29
28
  },
30
29
  "devDependencies": {
31
30
  "@types/node": "16.x",
32
- "@types/semver": "^7.5.4",
33
31
  "typescript": "^5.3.0",
34
- "@rsbuild/test-helper": "0.2.5",
35
- "@rsbuild/core": "0.2.5"
32
+ "@rsbuild/test-helper": "0.2.6",
33
+ "@rsbuild/core": "0.2.6"
36
34
  },
37
35
  "publishConfig": {
38
36
  "access": "public",