Skip to content

Commit e0fcf29

Browse files
motiz88facebook-github-bot
authored andcommitted
Use hermes-parser when building Node packages (#45041)
Summary: Pull Request resolved: #45041 Changelog: [Internal] TSIA Reviewed By: huntie Differential Revision: D58734657 fbshipit-source-id: d5b17bc0ee8f36bae7c594d99ce70ecea9bf4a40
1 parent e55ea2d commit e0fcf29

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"@typescript-eslint/parser": "^7.1.1",
5656
"ansi-styles": "^4.2.1",
5757
"babel-plugin-minify-dead-code-elimination": "^0.5.2",
58+
"babel-plugin-syntax-hermes-parser": "0.22.0",
5859
"babel-plugin-transform-define": "^2.1.2",
5960
"babel-plugin-transform-flow-enums": "^0.0.2",
6061
"babel-preset-fbjs": "^3.4.0",

scripts/build/babel/node.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const config /*: BabelCoreOptions */ = {
2828
],
2929
],
3030
plugins: [
31+
require.resolve('babel-plugin-syntax-hermes-parser'),
3132
[
3233
require.resolve('babel-plugin-transform-define'),
3334
{

yarn.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3709,6 +3709,13 @@ babel-plugin-syntax-hermes-parser@0.17.0:
37093709
dependencies:
37103710
hermes-parser "0.17.0"
37113711

3712+
babel-plugin-syntax-hermes-parser@0.22.0:
3713+
version "0.22.0"
3714+
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-hermes-parser/-/babel-plugin-syntax-hermes-parser-0.22.0.tgz#708aa61189aa8ef882d3638e40da2d685a742298"
3715+
integrity sha512-DSZphimfuycQgouuhqUq9gCV1dNKFaA1phquNFjj3nO2Rx+zAcCMc8qrUK9koxJyEN+y+CihP3Kya6ukCl13OQ==
3716+
dependencies:
3717+
hermes-parser "0.22.0"
3718+
37123719
babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0:
37133720
version "7.0.0-beta.0"
37143721
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz#aa213c1435e2bffeb6fca842287ef534ad05d5cf"

0 commit comments

Comments
 (0)