Skip to content

Commit

Permalink
Add an accompanying example of a file for the importMap option exam…
Browse files Browse the repository at this point in the history
…ple (#2791)

* Add @emotion/babel-plugin importMap example

* Update packages/babel-plugin/README.md

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
  • Loading branch information
guymoon and Andarist committed Jul 30, 2022
1 parent fa7f494 commit ac94be9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/babel-plugin/README.md
Expand Up @@ -301,6 +301,13 @@ This option assumes that you are using something to make `@emotion/react`'s `jsx

This option allows you to tell @emotion/babel-plugin what imports it should look at to determine what it should transform so if you re-export Emotion's exports, you can still use the Babel transforms

An example file:

```js
import { anotherExport } from 'my-package';
import { someExport, thisIsTheJsxExport } from 'some-package';
```

An example config:

```json
Expand Down

0 comments on commit ac94be9

Please sign in to comment.