babel-plugin-emotion@11.0.0-next.6
Pre-release
Pre-release
·
532 commits
to main
since this release
Major Changes
-
843bfb11#1600 Thanks @Andarist! - Removed@emotion/css- it's main purpose was to allowcssto be a Babel macro, but since babel-plugin-macros allows us to keep imports nowadays this is no longer needed.@emotion/core/macrohas been added to account for this use case and appropriate changes has been made tobabel-plugin-emotionto facilitate those changes.If you have used
@emotion/cssdirectly (it was always reexported from@emotion/core) or you have been using its macro then you should update your code like this:-import css from '@emotion/css' +import { css } from '@emotion/core' // or -import css from '@emotion/css/macro' +import { css } from '@emotion/core/macro'