From 5117517a1f75099bb6c2e26c4cb83979709e4cf4 Mon Sep 17 00:00:00 2001 From: Qingyu Wang Date: Sat, 28 Oct 2023 00:46:50 +0800 Subject: [PATCH] Add docs for target.hermes Change-Id: Id2c33df50062d9581e48c7ec77eb94749ed04aa5 Signed-off-by: Qingyu Wang --- docs/options.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/options.md b/docs/options.md index 34f90261ba..8a74ea10dc 100644 --- a/docs/options.md +++ b/docs/options.md @@ -334,6 +334,7 @@ Added in: `v7.13.0`
| Version | Changes | | --- | --- | +| `v7.24.0` | Support `hermes` target | | `v7.20.0` | Support `deno` target | | `v7.15.0` | Support `rhino` target | @@ -359,7 +360,7 @@ Or an object of minimum environment versions to support: } ``` -Supported environments: `android`, `chrome`, `deno`, `edge`, `electron`, `firefox`, `ie`, `ios`, `node`, `opera`, `rhino`, `safari`, `samsung`. +Supported environments: `android`, `chrome`, `deno`, `edge`, `electron`, `firefox`, `hermes`, `ie`, `ios`, `node`, `opera`, `rhino`, `safari`, `samsung`. If a minor version is not specified, Babel will interpret it as `MAJOR.0`. For example, `"node": 12` will be considered as Node.js 12.0. @@ -463,6 +464,20 @@ The minimum supported version is 1.0. } ``` +#### `targets.hermes` + +Type: `string`. + +The minimum supported version is 0.7. + +```json title="babel.config.json" +{ + "targets": { + "hermes": "0.12" + } +} +``` + ### `browserslistConfigFile` Type: `boolean`