9e3671c4
#2076 Thanks @Andarist! - Removedruntime
option that was introduced to this preset and deprecated shortly after that. If you want to configureruntime: "automatic"
, replace@emotion/babel-preset-css-prop
with@babel/preset-react
and@emotion/babel-plugin
. You can find out how to configure things properly here: https://emotion.sh/docs/css-prop#babel-preset
- Updated dependencies [
b7d21373
]:- @emotion/babel-plugin@11.0.0-rc.1
- Updated dependencies [
9c4ebc16
]:- @emotion/babel-plugin@11.0.0-rc.0
-
c7850e61
#1600 Thanks @Andarist! -autoLabel
option no longer is a simple boolean. Instead we accept now 3 values:dev-only
(the default),always
andnever
.Each possible value for this option produces different output code:
- with
dev-only
we optimize the production code, so there are no labels added there, but at the same time we keep labels for development environments, - with
always
we always add labels when possible, - with
never
we disable this entirely and no labels are added.
- with
c643107
#1600 Thanks @joltmode! - Adjust how arrays passed to css prop are transformed so function elements can be resolved at runtime.
- Updated dependencies [
c643107
]:- babel-plugin-emotion@11.0.0-next.8
c5b12d90
#1220 Thanks @mitchellhamilton! - Removed support for theinstances
option, any usage of it should be replaced with theimportMap
option
c5b12d90
#1220 Thanks @mitchellhamilton! - Added theimportMap
option which allows you to tell babel-plugin-emotion 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
32c8528a
#2084 Thanks @Andarist! - Only use'@babel/plugin-transform-react-jsx-development'
based on thedevelopment
option whenruntime
is set to"automatic"
. The classic runtime is not compatible with this plugin.
c55fadb4
#2074 Thanks @Andarist! -runtime
option has been deprecated. It still works and will continue to work in Emotion 10 but we have found out that including JSX plugin twice in the Babel configuration leads to hard to debug problems and it's not always obvious that some presets include it. If you want to configureruntime: "automatic"
just replace@emotion/babel-preset-css-prop
with@babel/preset-react
andbabel-plugin-emotion
. You can find out how to configure things properly here: https://emotion.sh/docs/css-prop#babel-preset
71514b06
#1970 Thanks @FLGMwt! - A newruntime
option has been added that can be configured to'automatic'
to opt into the new JSX runtimes. To use this a compatible React version has to be used.
4c62ae9
#1698 Thanks @Andarist! - Add LICENSE file- Updated dependencies [
4c62ae9
]:- babel-plugin-emotion@10.0.27
- @emotion/babel-plugin-jsx-pragmatic@0.1.5
539bc0c2
#1576 Thanks @Andarist! - Insert import to @emotion/core after existing imports to avoid ordering issues with polyfills
-
3927293d
#1569 Thanks @Andarist! - Add dev hint about css object (generated by Babel) being stringified by accident -
Updated dependencies [
539bc0c2
,3927293d
,b3a0f148
]:- @emotion/babel-plugin-jsx-pragmatic@0.1.4
- babel-plugin-emotion@10.0.23
-
1bb3efe3
#1554 Thanks @Andarist! - Prepend appended label string with semicolon to avoid problems with declaration blocks without a final semicolon -
Updated dependencies [
1bb3efe3
]:- babel-plugin-emotion@10.0.22
- c0eb604d #1419 Thanks @mitchellhamilton! - Update build tool