Skip to content

Commit 3639661

Browse files
committed
chore: enable react-compiler
1 parent 98cef90 commit 3639661

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

example/babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const root = path.resolve(__dirname, '..');
77
module.exports = getConfig(
88
{
99
presets: ['module:@react-native/babel-preset'],
10+
plugins: [['babel-plugin-react-compiler', {}]],
1011
},
1112
{ root, pkg }
1213
);

example/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"@react-native/metro-config": "0.79.2",
3131
"@react-native/typescript-config": "0.79.2",
3232
"@types/react": "^19.0.0",
33+
"babel-plugin-react-compiler": "^1.0.0",
3334
"react-native-builder-bob": "^0.40.10"
3435
},
3536
"engines": {

yarn.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13901,6 +13901,7 @@ __metadata:
1390113901
"@react-navigation/native": ^7.1.9
1390213902
"@react-navigation/stack": ^7.3.2
1390313903
"@types/react": ^19.0.0
13904+
babel-plugin-react-compiler: ^1.0.0
1390413905
react: 19.0.0
1390513906
react-native: 0.79.2
1390613907
react-native-builder-bob: ^0.40.10

0 commit comments

Comments
 (0)