From ac94be9d002d3d64122662cba86e16aafcedf2ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20=28=EC=A1=B0=EA=B8=B0=EB=AC=B8=29?= Date: Sun, 31 Jul 2022 03:16:05 +0900 Subject: [PATCH] Add an accompanying example of a file for the `importMap` option example (#2791) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add @emotion/babel-plugin importMap example * Update packages/babel-plugin/README.md Co-authored-by: Mateusz BurzyƄski --- packages/babel-plugin/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/babel-plugin/README.md b/packages/babel-plugin/README.md index 465498841..10d3712e9 100644 --- a/packages/babel-plugin/README.md +++ b/packages/babel-plugin/README.md @@ -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