0.21.0 • Published 3 days ago

babel-plugin-syntax-hermes-parser v0.21.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 days ago

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
  }
}
0.21.0

3 days ago

0.20.1

2 months ago

0.20.0

2 months ago

0.19.2

2 months ago

0.19.1

3 months ago

0.19.0

3 months ago

0.18.2

5 months ago

0.18.1

5 months ago

0.18.0

5 months ago

0.15.0

9 months ago

0.16.0

8 months ago

0.15.1

9 months ago

0.17.0

7 months ago

0.17.1

6 months ago

0.14.0

10 months ago

0.13.1

10 months ago

0.13.0

10 months ago