From 87a07e5fe59a015cbb5644a50cea57a13a0e13bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Wed, 1 Jan 2020 11:46:42 +0100 Subject: [PATCH] Add changeset --- .changeset/polite-impalas-doubt.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .changeset/polite-impalas-doubt.md diff --git a/.changeset/polite-impalas-doubt.md b/.changeset/polite-impalas-doubt.md new file mode 100644 index 000000000..5f665d514 --- /dev/null +++ b/.changeset/polite-impalas-doubt.md @@ -0,0 +1,12 @@ +--- +'babel-plugin-emotion': major +'@emotion/babel-preset-css-prop': major +--- + +`autoLabel` option no longer is a simple boolean. Instead we accept now 3 values: `dev-only` (the default), `always` and `never`. + +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.