@rsbuild/plugin-react 0.1.4 → 0.1.5
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 +3 -3
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ import { RsbuildPlugin } from '@rsbuild/core';
|
|
|
2
2
|
|
|
3
3
|
declare const isBeyondReact17: (cwd: string) => Promise<boolean>;
|
|
4
4
|
|
|
5
|
-
type
|
|
5
|
+
type SplitReactChunkOptions = {
|
|
6
6
|
react?: boolean;
|
|
7
7
|
router?: boolean;
|
|
8
8
|
};
|
|
9
9
|
type PluginReactOptions = {
|
|
10
|
-
splitChunks?:
|
|
10
|
+
splitChunks?: SplitReactChunkOptions;
|
|
11
11
|
};
|
|
12
12
|
declare const pluginReact: (options?: PluginReactOptions) => RsbuildPlugin;
|
|
13
13
|
|
|
14
|
-
export { PluginReactOptions, isBeyondReact17, pluginReact
|
|
14
|
+
export { PluginReactOptions, SplitReactChunkOptions, isBeyondReact17, pluginReact };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
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.4.
|
|
24
|
+
"@rspack/plugin-react-refresh": "0.4.1",
|
|
25
25
|
"react-refresh": "^0.14.0",
|
|
26
26
|
"semver": "^7.5.4",
|
|
27
|
-
"@rsbuild/shared": "0.1.
|
|
27
|
+
"@rsbuild/shared": "0.1.5"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "^16",
|
|
31
31
|
"@types/semver": "^7.5.4",
|
|
32
32
|
"typescript": "^5.3.0",
|
|
33
|
-
"@rsbuild/
|
|
34
|
-
"@rsbuild/
|
|
33
|
+
"@rsbuild/test-helper": "0.1.5",
|
|
34
|
+
"@rsbuild/core": "0.1.5"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public",
|