diff --git a/babel.config.js b/babel.config.js index 5f643cfd7..ee5229b0c 100644 --- a/babel.config.js +++ b/babel.config.js @@ -19,6 +19,7 @@ const fs = require('fs'); import type {BabelCoreOptions} from '@babel/core'; */ const plugins = [ + 'babel-plugin-syntax-hermes-parser', '@babel/plugin-transform-flow-strip-types', '@babel/plugin-transform-modules-commonjs', '@babel/plugin-syntax-class-properties', diff --git a/package.json b/package.json index b93ea6c87..59453cedb 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "@typescript-eslint/parser": "^6.7.4", "acorn": "^8.7.1", "babel-jest": "^29.6.3", + "babel-plugin-syntax-hermes-parser": "0.19.1", "chalk": "^4.0.0", "debug": "^2.2.0", "eslint": "^8.23.1",