Skip to content

Commit

Permalink
Warn about incompatibility with @babel/plugin-transform-react-inline-…
Browse files Browse the repository at this point in the history
…elements (#1712)

Since there's only the one warning I think it makes more sense to put it at the top where it shows implementing the plugin in `.babelrc`. I also noticed that the full page for the docs on the `@emotion/babel-preset-css-prop` doesn't make any mention of this incompatibility.

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
  • Loading branch information
Slapbox and Andarist authored Jul 2, 2020
1 parent cd77efb commit 97d1f97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/babel-preset-css-prop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ yarn add @emotion/babel-preset-css-prop

## Usage

> Note:
>
> This plugin is not compatible with `@babel/plugin-transform-react-inline-elements`. If you use both then your `css` prop styles won't be applied correctly.
**.babelrc**

```json
Expand Down

0 comments on commit 97d1f97

Please sign in to comment.