@rsbuild/plugin-react 1.0.1-beta.1 → 1.0.1-beta.10

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 CHANGED
@@ -99,7 +99,7 @@ var applyBasicReactSupport = (api, options) => {
99
99
  );
100
100
  };
101
101
  var applyReactProfiler = (api) => {
102
- api.modifyRsbuildConfig((config, { mergeRsbuildConfig }) => {
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 mergeRsbuildConfig(config, enableProfilerConfig);
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
@@ -9,7 +9,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
9
9
  throw Error('Dynamic require of "' + x + '" is not supported');
10
10
  });
11
11
 
12
- // ../../node_modules/.pnpm/@modern-js+module-tools@2.55.0_eslint@9.6.0_typescript@5.5.2/node_modules/@modern-js/module-tools/shims/esm.js
12
+ // ../../node_modules/.pnpm/@modern-js+module-tools@2.57.1_typescript@5.5.2/node_modules/@modern-js/module-tools/shims/esm.js
13
13
  import { fileURLToPath } from "url";
14
14
  import path from "path";
15
15
 
@@ -77,7 +77,7 @@ var applyBasicReactSupport = (api, options) => {
77
77
  );
78
78
  };
79
79
  var applyReactProfiler = (api) => {
80
- api.modifyRsbuildConfig((config, { mergeRsbuildConfig }) => {
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 mergeRsbuildConfig(config, enableProfilerConfig);
94
+ return mergeEnvironmentConfig(config, enableProfilerConfig);
95
95
  });
96
96
  api.modifyBundlerChain((chain) => {
97
97
  chain.resolve.alias.set("react-dom$", "react-dom/profiling");
@@ -0,0 +1 @@
1
+ {"//":"This file is for making TypeScript work with moduleResolution node16+.","version":"1.0.0"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-react",
3
- "version": "1.0.1-beta.1",
3
+ "version": "1.0.1-beta.10",
4
4
  "description": "React plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,28 +11,29 @@
11
11
  "type": "module",
12
12
  "exports": {
13
13
  ".": {
14
- "types": "./dist/index.d.ts",
14
+ "types": "./dist-types/index.d.ts",
15
15
  "import": "./dist/index.js",
16
16
  "require": "./dist/index.cjs"
17
17
  }
18
18
  },
19
19
  "main": "./dist/index.cjs",
20
- "types": "./dist/index.d.ts",
20
+ "types": "./dist-types/index.d.ts",
21
21
  "files": [
22
- "dist"
22
+ "dist",
23
+ "dist-types"
23
24
  ],
24
25
  "dependencies": {
25
- "@rspack/plugin-react-refresh": "1.0.0-alpha.3",
26
+ "@rspack/plugin-react-refresh": "1.0.0-beta.2",
26
27
  "react-refresh": "^0.14.2"
27
28
  },
28
29
  "devDependencies": {
29
30
  "@types/node": "18.x",
30
31
  "typescript": "^5.5.2",
31
- "@rsbuild/core": "1.0.1-beta.1",
32
- "@scripts/test-helper": "1.0.1-beta.1"
32
+ "@rsbuild/core": "1.0.1-beta.10",
33
+ "@scripts/test-helper": "1.0.1-beta.10"
33
34
  },
34
35
  "peerDependencies": {
35
- "@rsbuild/core": "^1.0.1-beta.0"
36
+ "@rsbuild/core": "^1.0.1-beta.10"
36
37
  },
37
38
  "publishConfig": {
38
39
  "access": "public",
File without changes
File without changes
File without changes