Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/babel/website into sync-33d…
Browse files Browse the repository at this point in the history
…30f3d
  • Loading branch information
docschina-bot committed Oct 13, 2023
2 parents 0531dcc + 33d30f3 commit d0aa6c4
Show file tree
Hide file tree
Showing 177 changed files with 191 additions and 580 deletions.
2 changes: 1 addition & 1 deletion docs/plugin-transform-typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ equivalents in Babel can be enabled by some configuration options or plugins.
Babel doesn't support targeting a specific version of the language, but you can choose which engines you want to target using [`@babel/preset-env`](https://babeljs.io/docs/en/babel-preset-env).
If you prefer, you can enable [individual plugins](https://babeljs.io/docs/en/plugins) for every ECMAScript feature.
- `--useDefineForClassFields`
You can use the `onlyRemoveTypeImports` option to replicate this behavior.
You can use the [`setPublicClassFields`](https://babeljs.io/docs/assumptions#setpublicclassfields) assumption to replicate this behavior.
- `--watch`, `-w`
When using `@babel/cli`, you can specify the [`--watch` option](https://babeljs.io/docs/en/babel-cli#compile-files).

Expand Down
16 changes: 15 additions & 1 deletion docs/preset-env.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,26 @@ For usage, refer to the [`targets` option](options.md#targets) documentation.

### `bugfixes`

:::babel8

`boolean`, defaults to `true`.

:::

:::babel7

`boolean`, defaults to `false`.

:::

Added in: `v7.9.0`

:::babel7

:::note
These optimizations will be enabled by default in Babel 8
This option will be enabled by default in Babel 8
:::

:::

By default, `@babel/preset-env` (and Babel plugins in general) grouped ECMAScript syntax features into collections of closely related smaller features. These groups can be large and include a lot of edge cases, for example "function arguments" includes destructured, default and rest parameters. From this grouping information, Babel enables or disables each group based on the browser support target you specify to `@babel/preset-env`’s `targets` option.
Expand Down
2 changes: 1 addition & 1 deletion website/static/img/babel-black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion website/static/img/babel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion website/static/img/icons/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion website/static/img/icons/slack.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion website/static/img/icons/twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 1 addition & 5 deletions website/static/img/user.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion website/static/img/users/201-created.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d0aa6c4

Please sign in to comment.