Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions docs/plugin-transform-react-jsx-self.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ title: "@babel/plugin-transform-react-jsx-self"
sidebar_label: react-jsx-self
---

:::info
This plugin is included in `@babel/preset-react`
:::

## Example

**In**
Expand Down
4 changes: 0 additions & 4 deletions docs/plugin-transform-react-jsx-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ title: "@babel/plugin-transform-react-jsx-source"
sidebar_label: react-jsx-source
---

:::info
This plugin is included in `@babel/preset-react`
:::

## Example

**In**
Expand Down
9 changes: 1 addition & 8 deletions docs/preset-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,12 @@ id: babel-preset-react
title: "@babel/preset-react"
---

This preset always includes the following plugins:
This preset includes the following plugins:

- [@babel/plugin-syntax-jsx](plugin-syntax-jsx.md)
- [@babel/plugin-transform-react-jsx](plugin-transform-react-jsx.md)
- [@babel/plugin-transform-react-display-name](plugin-transform-react-display-name.md)

And with the `development` option:

Classic runtime adds:

- [@babel/plugin-transform-react-jsx-self](plugin-transform-react-jsx-self.md)
- [@babel/plugin-transform-react-jsx-source](plugin-transform-react-jsx-source.md)

Automatic runtime (since `v7.9.0`) adds the functionality for these plugins automatically when the `development` option is enabled. If you have automatic runtime enabled, adding [@babel/plugin-transform-react-jsx-self](plugin-transform-react-jsx-self.md) or [@babel/plugin-transform-react-jsx-source](plugin-transform-react-jsx-source.md) will error.

> Note: Flow syntax support is no longer enabled in v7. For that, you will need to add the [Flow preset](preset-flow.md).
Expand Down