@itcase/storybook-config 1.3.12 → 1.3.13

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
- // prop-types is CJS; prebundle so `import x from 'prop-types'` works in Vite 8.
30
- include: ['prop-types', 'react-native-web', 'react-native-svg'],
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 (e.g. prop-types) need prebundling for ESM default import.
63
- include: ['prop-types', ...(config.optimizeDeps?.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.12",
3
+ "version": "1.3.13",
4
4
  "author": "ITCase",
5
5
  "description": "Storybook configuration package",
6
6
  "engines": {