Skip to content

Commit 7d4196c

Browse files
motiz88tido64
andauthored
fix(codegen): fix missing dependencies (#52884) (#53478)
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 Co-authored-by: Tommy Nguyen <4123478+tido64@users.noreply.github.com>
1 parent 495b307 commit 7d4196c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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.29.1",
3436
"invariant": "^2.2.4",

0 commit comments

Comments
 (0)