Skip to content

Commit

Permalink
fix #198: enable Babel if presets list is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed Jul 30, 2023
1 parent d1c9110 commit 6e2e0a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugin-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
// Avoid parsing if no special transformation is needed
if (
!plugins.length &&
!babelOptions.presets.length &&
!babelOptions.configFile &&
!babelOptions.babelrc
) {
Expand Down

0 comments on commit 6e2e0a4

Please sign in to comment.