diff --git a/.changeset/loud-dingos-divide.md b/.changeset/loud-dingos-divide.md deleted file mode 100644 index ad127fa84e..0000000000 --- a/.changeset/loud-dingos-divide.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@emotion/babel-plugin': patch ---- - -Fixed an issue in the minifying logic that could remove rules with the same context values as their parent rules. Like in the example below: - -```js -styled.div` - > div { - color: blue; - - > div { - color: hotpink; - } - } -` -``` diff --git a/packages/babel-plugin/CHANGELOG.md b/packages/babel-plugin/CHANGELOG.md index d5ef42cf8a..d795646e46 100644 --- a/packages/babel-plugin/CHANGELOG.md +++ b/packages/babel-plugin/CHANGELOG.md @@ -1,5 +1,23 @@ # @emotion/babel-plugin +## 11.9.2 + +### Patch Changes + +- [#2721](https://github.com/emotion-js/emotion/pull/2721) [`ae0f650b`](https://github.com/emotion-js/emotion/commit/ae0f650b5ad8ef658b61edca6157fe208be23b43) Thanks [@Andarist](https://github.com/Andarist)! - Fixed an issue in the minifying logic that could remove rules with the same context values as their parent rules. Like in the example below: + + ```js + styled.div` + > div { + color: blue; + + > div { + color: hotpink; + } + } + ` + ``` + ## 11.7.2 ### Patch Changes diff --git a/packages/babel-plugin/package.json b/packages/babel-plugin/package.json index 246b605400..29d2ff9e80 100644 --- a/packages/babel-plugin/package.json +++ b/packages/babel-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/babel-plugin", - "version": "11.7.2", + "version": "11.9.2", "description": "A recommended babel preprocessing plugin for emotion, The Next Generation of CSS-in-JS.", "main": "dist/emotion-babel-plugin.cjs.js", "module": "dist/emotion-babel-plugin.esm.js", diff --git a/packages/server/package.json b/packages/server/package.json index 59ec0608ad..03d71ddab0 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -28,7 +28,7 @@ } }, "devDependencies": { - "@emotion/babel-plugin": "11.7.2", + "@emotion/babel-plugin": "11.9.2", "@emotion/css": "11.9.0", "@emotion/css-prettifier": "1.0.1", "@types/node": "^10.11.4",