From 41e4fd31a1ff061bd8fcfd55e0609c13fc303491 Mon Sep 17 00:00:00 2001 From: Daniel Williams Date: Sun, 8 Dec 2024 14:49:04 +0000 Subject: [PATCH] RNW Vite: Fix flow plugin including too many things --- code/frameworks/react-native-web-vite/src/preset.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: {