@rsbuild/plugin-react 0.3.3 → 0.3.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 +1 -1
- package/dist/index.mjs +4 -5
- package/package.json +7 -4
package/dist/index.d.ts
CHANGED
|
@@ -31,4 +31,4 @@ type PluginReactOptions = {
|
|
|
31
31
|
declare const PLUGIN_REACT_NAME = "rsbuild:react";
|
|
32
32
|
declare const pluginReact: (options?: PluginReactOptions) => RsbuildPlugin;
|
|
33
33
|
|
|
34
|
-
export { PLUGIN_REACT_NAME, PluginReactOptions, SplitReactChunkOptions, isBeyondReact17, pluginReact };
|
|
34
|
+
export { PLUGIN_REACT_NAME, type PluginReactOptions, type SplitReactChunkOptions, isBeyondReact17, pluginReact };
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { createRequire } from 'module';
|
|
2
|
+
var require = createRequire(import.meta['url']);
|
|
3
|
+
|
|
1
4
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
2
5
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
3
6
|
}) : x)(function(x) {
|
|
@@ -6,14 +9,10 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
6
9
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
10
|
});
|
|
8
11
|
|
|
9
|
-
// ../../node_modules/.pnpm/@modern-js+module-tools@2.
|
|
12
|
+
// ../../node_modules/.pnpm/@modern-js+module-tools@2.46.1_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
|
|
10
13
|
import { fileURLToPath } from "url";
|
|
11
14
|
import path from "path";
|
|
12
15
|
|
|
13
|
-
// ../../scripts/requireShims.js
|
|
14
|
-
import { createRequire } from "module";
|
|
15
|
-
global.require = createRequire(import.meta.url);
|
|
16
|
-
|
|
17
16
|
// src/index.ts
|
|
18
17
|
import { PLUGIN_SWC_NAME } from "@rsbuild/core";
|
|
19
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-react",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "React plugin for Rsbuild",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,13 +24,16 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@rspack/plugin-react-refresh": "0.5.0",
|
|
26
26
|
"react-refresh": "^0.14.0",
|
|
27
|
-
"@rsbuild/shared": "0.3.
|
|
27
|
+
"@rsbuild/shared": "0.3.5"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "16.x",
|
|
31
31
|
"typescript": "^5.3.0",
|
|
32
|
-
"@rsbuild/core": "0.3.
|
|
33
|
-
"@scripts/test-helper": "
|
|
32
|
+
"@rsbuild/core": "0.3.5",
|
|
33
|
+
"@scripts/test-helper": "0.3.5"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"@rsbuild/core": "^0.3.5"
|
|
34
37
|
},
|
|
35
38
|
"publishConfig": {
|
|
36
39
|
"access": "public",
|