@itcase/storybook-config 1.3.12 → 1.3.14
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.
|
@@ -26,8 +26,14 @@ const MAIN_CONFIG_REACT_NATIVE_WEB = {
|
|
|
26
26
|
optimizeDeps: {
|
|
27
27
|
// SVG subpath exports (`/default/svg`) must not be prebundled; svgr handles them.
|
|
28
28
|
exclude: ['@itcase/icons-default', 'react-native'],
|
|
29
|
-
//
|
|
30
|
-
include: [
|
|
29
|
+
// CJS packages: prebundle so default import works in Vite 8.
|
|
30
|
+
include: [
|
|
31
|
+
'prop-types',
|
|
32
|
+
'matchmediaquery',
|
|
33
|
+
'react-responsive',
|
|
34
|
+
'react-native-web',
|
|
35
|
+
'react-native-svg',
|
|
36
|
+
],
|
|
31
37
|
rolldownOptions: {
|
|
32
38
|
resolve: {
|
|
33
39
|
extensions: REACT_NATIVE_WEB_EXTENSIONS,
|
|
@@ -59,8 +59,13 @@ const MAIN_CONFIG_VITE = {
|
|
|
59
59
|
},
|
|
60
60
|
optimizeDeps: {
|
|
61
61
|
...config.optimizeDeps,
|
|
62
|
-
// CJS packages
|
|
63
|
-
include: [
|
|
62
|
+
// CJS packages need prebundling for ESM default import in Vite 8.
|
|
63
|
+
include: [
|
|
64
|
+
'prop-types',
|
|
65
|
+
'matchmediaquery',
|
|
66
|
+
'react-responsive',
|
|
67
|
+
...(config.optimizeDeps?.include ?? []),
|
|
68
|
+
],
|
|
64
69
|
rolldownOptions: {
|
|
65
70
|
...config.optimizeDeps?.rolldownOptions,
|
|
66
71
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/storybook-config",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.14",
|
|
4
4
|
"author": "ITCase",
|
|
5
5
|
"description": "Storybook configuration package",
|
|
6
6
|
"engines": {
|
|
@@ -138,11 +138,11 @@
|
|
|
138
138
|
"msw": "^2.15.0",
|
|
139
139
|
"msw-storybook-addon": "^3.0.0",
|
|
140
140
|
"react-native-gesture-handler": "^3.2.1",
|
|
141
|
-
"react-native-reanimated": "^4.
|
|
141
|
+
"react-native-reanimated": "^4.7.0",
|
|
142
142
|
"react-native-safe-area-context": "^5.9.1",
|
|
143
143
|
"react-native-svg": "^15.15.5",
|
|
144
144
|
"react-native-web": "^0.21.2",
|
|
145
|
-
"react-native-worklets": "^0.
|
|
145
|
+
"react-native-worklets": "^0.13.0",
|
|
146
146
|
"srvx": "^0.12.7",
|
|
147
147
|
"storybook": "^10.5.10",
|
|
148
148
|
"storybook-addon-source-link": "^2.0.1",
|