@storybook/react-vite 10.0.0-beta.0 → 10.0.0-beta.2
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.
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_myyxax9k7i from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_myyxax9k7i from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_myyxax9k7i from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_myyxax9k7i.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_myyxax9k7i.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_myyxax9k7i.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
__name
|
|
17
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_myyxax9k7i from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_myyxax9k7i from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_myyxax9k7i from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_myyxax9k7i.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_myyxax9k7i.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_myyxax9k7i.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6H2VCIAM.js";
|
|
15
15
|
|
|
16
16
|
// src/plugins/react-docgen.ts
|
|
17
17
|
import { existsSync } from "node:fs";
|
package/dist/node/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_myyxax9k7i from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_myyxax9k7i from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_myyxax9k7i from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_myyxax9k7i.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_myyxax9k7i.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_myyxax9k7i.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-6H2VCIAM.js";
|
|
15
15
|
|
|
16
16
|
// src/node/index.ts
|
|
17
17
|
function defineMain(config) {
|
package/dist/preset.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_myyxax9k7i from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_myyxax9k7i from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_myyxax9k7i from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_myyxax9k7i.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_myyxax9k7i.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_myyxax9k7i.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
|
-
} from "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-6H2VCIAM.js";
|
|
15
15
|
|
|
16
16
|
// src/preset.ts
|
|
17
17
|
var core = {
|
|
@@ -41,7 +41,7 @@ var viteFinal = /* @__PURE__ */ __name(async (config, { presets }) => {
|
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
43
|
if (typeof reactDocgenOption === "string") {
|
|
44
|
-
const { reactDocgen } = await import("./_node-chunks/react-docgen-
|
|
44
|
+
const { reactDocgen } = await import("./_node-chunks/react-docgen-I343G3LQ.js");
|
|
45
45
|
plugins.unshift(
|
|
46
46
|
// If react-docgen is specified, use it for everything, otherwise only use it for non-typescript files
|
|
47
47
|
await reactDocgen({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react-vite",
|
|
3
|
-
"version": "10.0.0-beta.
|
|
3
|
+
"version": "10.0.0-beta.2",
|
|
4
4
|
"description": "Storybook for React and Vite: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@joshwooding/vite-plugin-react-docgen-typescript": "0.6.1",
|
|
57
57
|
"@rollup/pluginutils": "^5.0.2",
|
|
58
|
-
"@storybook/builder-vite": "10.0.0-beta.
|
|
59
|
-
"@storybook/react": "10.0.0-beta.
|
|
58
|
+
"@storybook/builder-vite": "10.0.0-beta.2",
|
|
59
|
+
"@storybook/react": "10.0.0-beta.2",
|
|
60
60
|
"find-up": "^7.0.0",
|
|
61
61
|
"magic-string": "^0.30.0",
|
|
62
62
|
"react-docgen": "^8.0.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
73
73
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
74
|
-
"storybook": "^10.0.0-beta.
|
|
74
|
+
"storybook": "^10.0.0-beta.2",
|
|
75
75
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
76
76
|
},
|
|
77
77
|
"publishConfig": {
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_sxlqeh4uf3f from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_sxlqeh4uf3f from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_sxlqeh4uf3f from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_sxlqeh4uf3f.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_sxlqeh4uf3f.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_sxlqeh4uf3f.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
var __defProp = Object.defineProperty;
|
|
13
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
__name
|
|
17
|
-
};
|