From b0aac2af7746575025a57014282a6f2a5f1ae82f Mon Sep 17 00:00:00 2001 From: Daniel Williams Date: Sun, 5 Jan 2025 14:41:53 +0000 Subject: [PATCH] fix: dont run vite config migraiton for rnw --- .../cli-storybook/src/automigrate/fixes/vite-config-file.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/lib/cli-storybook/src/automigrate/fixes/vite-config-file.ts b/code/lib/cli-storybook/src/automigrate/fixes/vite-config-file.ts index 84201fd64852..4d1389c41e7d 100644 --- a/code/lib/cli-storybook/src/automigrate/fixes/vite-config-file.ts +++ b/code/lib/cli-storybook/src/automigrate/fixes/vite-config-file.ts @@ -42,6 +42,12 @@ export const viteConfigFile = { return null; } const frameworkName = frameworkPackages[frameworkPackageName]; + + if (frameworkName === 'react-native-web-vite') { + // we don't expect a vite config file for this framework + return null; + } + const isUsingViteBuilder = mainConfig.core?.builder === 'vite' || frameworkPackageName?.includes('vite') ||