New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

babel-plugin-syntax-hermes-parser

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-syntax-hermes-parser

Babel plugin which switches Babel to use the Hermes parser.

Source
npmnpm
Version
0.36.1
Version published
Weekly downloads
16M
65.42%
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-syntax-hermes-parser

Hermes parser plugin for Babel. This plugin switches Babel to use hermes-parser instead of the @babel/parser. Since Hermes parser uses C++ compiled to WASM it is significantly faster and provides full syntax support for Flow.

Install

Using npm:

npm install --save-dev babel-plugin-syntax-hermes-parser

or using yarn:

yarn add babel-plugin-syntax-hermes-parser --dev

Usage

The plugin can be enabled via:

// babel.config.json
{
  "plugins": ["babel-plugin-syntax-hermes-parser"]
}

If parser options need to be provide you can do so via the parserOpts config:

// babel.config.json
{
  "plugins": ["babel-plugin-syntax-hermes-parser"],
  "parserOpts": {
    "allowReturnOutsideFunction": true
  }
}

FAQs

Package last updated on 06 May 2026

Related posts