Skip to content

Commit ac94be9

Browse files
Add an accompanying example of a file for the importMap option example (#2791)
* Add @emotion/babel-plugin importMap example * Update packages/babel-plugin/README.md Co-authored-by: Mateusz Burzyński <[email protected]>
1 parent fa7f494 commit ac94be9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/babel-plugin/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,13 @@ This option assumes that you are using something to make `@emotion/react`'s `jsx
301301

302302
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
303303

304+
An example file:
305+
306+
```js
307+
import { anotherExport } from 'my-package';
308+
import { someExport, thisIsTheJsxExport } from 'some-package';
309+
```
310+
304311
An example config:
305312

306313
```json

0 commit comments

Comments
 (0)