diff --git a/code/frameworks/react-native-web-vite/src/preset.ts b/code/frameworks/react-native-web-vite/src/preset.ts index 8e3d7d6b58a8..5c4f05b88e4a 100644 --- a/code/frameworks/react-native-web-vite/src/preset.ts +++ b/code/frameworks/react-native-web-vite/src/preset.ts @@ -73,7 +73,7 @@ export const viteFinal: StorybookConfig['viteFinal'] = async (config, options) = plugins.unshift( flowPlugin({ - exclude: [], + exclude: [/node_modules\/(?!react-native|@react-native)/], }), react({ babel: {