Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-syntax-hermes-parser

Package Overview
Dependencies
Maintainers
1
Versions
24
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.

  • 0.25.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
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 12 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc