Skip to content

Commit

Permalink
fix(babel-config): Specify 'target' for the react compiler plugin (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Dec 28, 2024
1 parent 4a2cfd9 commit 621936a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/babel-config/src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,7 @@ export const getWebSideBabelPlugins = (

const plugins = [
// It is important that this plugin run first, as noted here: https://react.dev/learn/react-compiler
useReactCompiler && [
'babel-plugin-react-compiler',
{
// No specific config at this time...
},
],
useReactCompiler && ['babel-plugin-react-compiler', { target: 19 }],
// === Import path handling
[
'babel-plugin-module-resolver',
Expand Down

0 comments on commit 621936a

Please sign in to comment.