@storybook/react-native-web-vite 11.0.0-alpha.4 → 11.0.0-alpha.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/_node-chunks/chunk-GLJIOED3.js +49 -0
- package/dist/_node-chunks/chunk-VH5OJ6KV.js +1846 -0
- package/dist/node/index.js +7 -6
- package/dist/preset.js +11 -8
- package/dist/vite-plugin.js +11 -8
- package/package.json +14 -8
package/dist/node/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_pgrik10hrqk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_pgrik10hrqk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_pgrik10hrqk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_pgrik10hrqk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_pgrik10hrqk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_pgrik10hrqk.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
+
import "../_node-chunks/chunk-GLJIOED3.js";
|
|
12
13
|
|
|
13
14
|
// src/node/index.ts
|
|
14
15
|
function defineMain(config) {
|
package/dist/preset.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_pgrik10hrqk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_pgrik10hrqk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_pgrik10hrqk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_pgrik10hrqk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_pgrik10hrqk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_pgrik10hrqk.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
src_default
|
|
14
|
+
} from "./_node-chunks/chunk-VH5OJ6KV.js";
|
|
15
|
+
import "./_node-chunks/chunk-GLJIOED3.js";
|
|
12
16
|
|
|
13
17
|
// src/preset.ts
|
|
14
18
|
import { viteFinal as reactViteFinal } from "@storybook/react-vite/preset";
|
|
15
19
|
import { rnw } from "vite-plugin-rnw";
|
|
16
|
-
import tsconfigPaths from "vite-tsconfig-paths";
|
|
17
20
|
var getExcludeOptions = (modulesToTranspile) => {
|
|
18
21
|
let defaultModulesToTranspile = ["react-native", "@react-native", "expo", "@expo"], uniqueModulesToTranspile = Array.from(
|
|
19
22
|
/* @__PURE__ */ new Set([...modulesToTranspile, ...defaultModulesToTranspile])
|
|
@@ -23,7 +26,7 @@ var getExcludeOptions = (modulesToTranspile) => {
|
|
|
23
26
|
let { mergeConfig } = await import("vite"), { pluginReactOptions = {}, modulesToTranspile = [] } = await options.presets.apply("frameworkOptions"), { plugins = [], ...reactConfigWithoutPlugins } = await reactViteFinal(config, options);
|
|
24
27
|
return mergeConfig(reactConfigWithoutPlugins, {
|
|
25
28
|
plugins: [
|
|
26
|
-
|
|
29
|
+
src_default(),
|
|
27
30
|
rnw({
|
|
28
31
|
...getExcludeOptions(modulesToTranspile),
|
|
29
32
|
...pluginReactOptions,
|
package/dist/vite-plugin.js
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_pgrik10hrqk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_pgrik10hrqk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_pgrik10hrqk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_pgrik10hrqk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_pgrik10hrqk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_pgrik10hrqk.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
src_default
|
|
14
|
+
} from "./_node-chunks/chunk-VH5OJ6KV.js";
|
|
15
|
+
import "./_node-chunks/chunk-GLJIOED3.js";
|
|
12
16
|
|
|
13
17
|
// src/vite-plugin.ts
|
|
14
18
|
import { rnw } from "vite-plugin-rnw";
|
|
15
|
-
import tsconfigPaths from "vite-tsconfig-paths";
|
|
16
19
|
var storybookReactNativeWeb = () => [
|
|
17
|
-
|
|
20
|
+
src_default(),
|
|
18
21
|
rnw({
|
|
19
22
|
jsxRuntime: "automatic"
|
|
20
23
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react-native-web-vite",
|
|
3
|
-
"version": "11.0.0-alpha.
|
|
3
|
+
"version": "11.0.0-alpha.6",
|
|
4
4
|
"description": "Storybook for React Native Web and Vite: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -51,24 +51,30 @@
|
|
|
51
51
|
"!src/**/*"
|
|
52
52
|
],
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@storybook/builder-vite": "11.0.0-alpha.
|
|
55
|
-
"@storybook/react": "11.0.0-alpha.
|
|
56
|
-
"@storybook/react-vite": "11.0.0-alpha.
|
|
57
|
-
"vite-plugin-rnw": "~0.0.12"
|
|
58
|
-
"vite-tsconfig-paths": "^6.1.1"
|
|
54
|
+
"@storybook/builder-vite": "11.0.0-alpha.6",
|
|
55
|
+
"@storybook/react": "11.0.0-alpha.6",
|
|
56
|
+
"@storybook/react-vite": "11.0.0-alpha.6",
|
|
57
|
+
"vite-plugin-rnw": "~0.0.12"
|
|
59
58
|
},
|
|
60
59
|
"devDependencies": {
|
|
61
60
|
"@types/node": "^22.19.1",
|
|
62
|
-
"typescript": "^6.0.3"
|
|
61
|
+
"typescript": "^6.0.3",
|
|
62
|
+
"vite-tsconfig-paths": "^6.1.1"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"react": "^18.0.0 || ^19.0.0",
|
|
66
66
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
67
67
|
"react-native": ">=0.74.5",
|
|
68
68
|
"react-native-web": "^0.19.12 || ^0.20.0 || ^0.21.0",
|
|
69
|
-
"storybook": "^11.0.0-alpha.
|
|
69
|
+
"storybook": "^11.0.0-alpha.6",
|
|
70
|
+
"typescript": ">= 5.9.x",
|
|
70
71
|
"vite": "^6.3.0 || ^7.0.0 || ^8.0.0"
|
|
71
72
|
},
|
|
73
|
+
"peerDependenciesMeta": {
|
|
74
|
+
"typescript": {
|
|
75
|
+
"optional": true
|
|
76
|
+
}
|
|
77
|
+
},
|
|
72
78
|
"publishConfig": {
|
|
73
79
|
"access": "public"
|
|
74
80
|
},
|