Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/babel/website into sync-743…
Browse files Browse the repository at this point in the history
…461e1
  • Loading branch information
docschina-bot committed Nov 28, 2023
2 parents 6a59535 + 743461e commit 60afe0f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/v8-migration-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,19 @@ Check out the [v8-migration guide](v8-migration.md) for other user-level changes

__Migration__: The API above require a callback argument. If you are not providing a callback, please use their sync versions: `babel.transformSync`, `babel.transformFileSync`, `babel.transformFromAstSync`, `babel.parseSync`, `babel.loadOptionsSync`, `babel.loadPartialConfigSync` and `babel.createConfigItemSync`.

### `@babel/generator`

![low](https://img.shields.io/badge/risk%20of%20breakage%3F-low-yellowgreen.svg)

- Remove `CodeGenerator` class ([#16126](https://github.com/babel/babel/pull/16126))

__Migration__: In Babel 8 the undocumented `CodeGenerator` class has been removed, please use the default exported `generate` function instead.

```diff
- new CodeGenerator(ast).generate()
+ generate(ast)
```

### `@babel/types`

![medium](https://img.shields.io/badge/risk%20of%20breakage%3F-medium-yellow.svg)
Expand Down

0 comments on commit 60afe0f

Please sign in to comment.