You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`v7.15.0`| Added `hack` to the `proposal` option of `pipelineOperator`. Moved `topLevelAwait`, `privateIn` to Latest ECMAScript features |
228
227
|`v7.14.0`| Added `asyncDoExpressions`. Moved `classProperties`, `classPrivateProperties`, `classPrivateMethods`, `moduleStringNames` to Latest ECMAScript features |
|`7.21.0`| The default behavior of the `decorators`' `decoratorsBeforeExport` option is to allow decorators either before or after the `export` keyword. |
296
296
|`7.19.0`| The `syntaxType` option of the `recordAndTuple` plugin defaults to `hash`; added `allowCallParenthesized` option for the `decorators` plugin. |
297
-
|`7.17.0`| Added `@@` and `^^` to the `topicToken` option of the `hack` pipeline operator |
298
-
|`7.16.0`| Added `disallowAmbiguousJSXLike` for `typescript` plugin. Added `^` to the `topicToken` option of the `hack` pipeline operators |
299
-
|`7.14.0`| Added `dts` for `typescript` plugin |
297
+
|`7.17.0`| Added `@@` and `^^` to the `topicToken` option of the `hack` pipeline operator |
298
+
|`7.16.0`| Added `disallowAmbiguousJSXLike` for `typescript` plugin. Added `^` to the `topicToken` option of the `hack` pipeline operators |
299
+
|`7.14.0`| Added `dts` for `typescript` plugin |
300
+
300
301
</details>
301
302
302
303
<!-- TODO: Is this note still true? Don't we raise an exception? -->
@@ -309,7 +310,7 @@ When a plugin is specified multiple times, only the first options are considered
309
310
310
311
-`deprecatedAssertSyntax` (`boolean`, defaults to `false`)
311
312
312
-
When `true`, allow parsing import attributes using the [deprecated](https://tc39.es/proposal-import-attributes/#sec-deprecated-assert-keyword-for-import-attributes)`assert` keyword. This matches the syntax originally supported by the `importAssertions` parser plugin.
313
+
When `true`, allow parsing an old version of the importattributes, which used the `assert` keyword instead of `with`. [This matches the syntax originally supported by the `importAssertions` parser plugin.](:::babel7)
313
314
314
315
-`decorators`:
315
316
@@ -319,20 +320,21 @@ When a plugin is specified multiple times, only the first options are considered
319
320
320
321
-`decoratorsBeforeExport` (`boolean`)
321
322
322
-
By default decorators on exported classes can be placed either before or after the `export` keyword. When this option is set, decorators will only be allowed in the specified position.
323
+
By default decorators on exported classes can be placed either before or after the `export` keyword. When this option is set, decorators will only be allowed in the specified position.
323
324
324
-
```js title="JavaScript"
325
-
// decoratorsBeforeExport: true
326
-
@dec
327
-
exportclassC {}
325
+
```js title="JavaScript"
326
+
// decoratorsBeforeExport: true
327
+
@dec
328
+
export class C {}
328
329
329
-
// decoratorsBeforeExport: false
330
-
export @decclassC {}
331
-
```
330
+
// decoratorsBeforeExport: false
331
+
export @dec class C {}
332
+
```
332
333
333
-
:::caution
334
-
This option is deprecated and will be removed in a future version. Code that is valid when this option is explicitly set to `true` or `false` is also valid when this option is not set.
335
-
:::
334
+
:::caution
335
+
336
+
This option is deprecated and will be removed in a future version. Code that is valid when this option is explicitly set to `true` or `false` is also valid when this option is not set.
337
+
:::
336
338
337
339
-`optionalChainingAssign`:
338
340
@@ -384,9 +386,10 @@ This option is deprecated and will be removed in a future version. Code that is
384
386
<details>
385
387
<summary>History</summary>
386
388
387
-
| Version | Changes |
388
-
| --- | --- |
389
+
| Version | Changes|
390
+
| ---------|----------------- |
389
391
|`v7.14.0`| Added error codes |
392
+
390
393
</details>
391
394
392
395
Error codes are useful for handling the errors thrown by `@babel/parser`.
0 commit comments