Skip to content

Commit bf2c3af

Browse files
tido64facebook-github-bot
authored andcommitted
fix(codegen): fix missing dependencies (#52884)
Summary: `react-native/codegen` uses `babel/parser` and `babel/core` but does not declare dependency on them. Depending on how packages are hoisted (and especially in pnpm setups), this causes crashes during codegen. Resolves #52883 ## Changelog: [GENERAL] [FIXED] - Add missing Babel dependencies Pull Request resolved: #52884 Test Plan: See #52883 Reviewed By: cortinico, christophpurrer Differential Revision: D79103092 Pulled By: robhogan fbshipit-source-id: ecaf690f994393a652ea7f0d4f30bbabeb23a434
1 parent a4b9580 commit bf2c3af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-native-codegen/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
"lib"
3030
],
3131
"dependencies": {
32+
"@babel/core": "^7.25.2",
33+
"@babel/parser": "^7.25.3",
3234
"glob": "^7.1.1",
3335
"hermes-parser": "0.30.0",
3436
"invariant": "^2.2.4",

0 commit comments

Comments
 (0)