Skip to content

Commit

Permalink
fix: should transpile all in jsx format
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyhw committed Nov 30, 2024
1 parent 2462631 commit 1844245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/frameworks/react-native-web-vite/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const viteFinal: StorybookConfig['viteFinal'] = async (config, options) =
return mergeConfig(reactConfig, {
optimizeDeps: {
esbuildOptions: {
plugins: [esbuildFlowPlugin()],
plugins: [esbuildFlowPlugin(new RegExp(/\.(flow|jsx?)$/), (_path: string) => 'jsx')],
},
},
} satisfies InlineConfig);
Expand Down

0 comments on commit 1844245

Please sign in to comment.