Skip to content

Commit b7a18b3

Browse files
committed
Add React Compiler to Babel config
1 parent a269639 commit b7a18b3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

babel.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,13 @@ module.exports = {
1111
'@babel/preset-react',
1212
'@babel/preset-typescript',
1313
],
14-
plugins: ['@babel/proposal-object-rest-spread'],
14+
plugins: [
15+
[
16+
'babel-plugin-react-compiler',
17+
{
18+
target: '18',
19+
},
20+
],
21+
'@babel/proposal-object-rest-spread',
22+
],
1523
}

0 commit comments

Comments
 (0)