Skip to content

Commit

Permalink
feat: support react refresh for @emotion/react (#8205)
Browse files Browse the repository at this point in the history
* feat: support react refresh for @emotion/react

while set "jsxImportSource": "@emotion/react" in tsconfig

* fix: missing new jsx runtime

Co-authored-by: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com>
  • Loading branch information
liaoyinglong and mischnic committed Jul 31, 2022
1 parent 0dee73e commit 4d2de22
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -18,7 +18,10 @@ function shouldExclude(asset, options) {
v =>
v.specifier === 'react' ||
v.specifier === 'react/jsx-runtime' ||
v.specifier === 'react/jsx-dev-runtime',
v.specifier === 'react/jsx-dev-runtime'||
v.specifier === '@emotion/react' ||
v.specifier === '@emotion/react/jsx-runtime' ||
v.specifier === '@emotion/react/jsx-dev-runtime'
)
);
}
Expand Down

0 comments on commit 4d2de22

Please sign in to comment.