From 123c9aa1876ca34f2cac6c87535fb72643bccf4c Mon Sep 17 00:00:00 2001 From: Austin McGee <947888+amcgee@users.noreply.github.com> Date: Thu, 18 Feb 2021 13:37:45 +0100 Subject: [PATCH] fix: pin styled-jsx@3.3.2 to avoid styled-jsx/babel bug (#502) --- cli/package.json | 2 +- yarn.lock | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/cli/package.json b/cli/package.json index f59a0e7b3..41f3ce9c1 100644 --- a/cli/package.json +++ b/cli/package.json @@ -61,7 +61,7 @@ "rollup-plugin-postcss": "^2.0.3", "rollup-plugin-replace": "^2.2.0", "rollup-plugin-visualizer": "^3.2.2", - "styled-jsx": "^3.2.5" + "styled-jsx": "<3.3.3" }, "bin": { "d2-app-scripts": "./bin/d2-app-scripts" diff --git a/yarn.lock b/yarn.lock index 84968786d..f06790563 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15236,7 +15236,21 @@ style-loader@1.3.0: loader-utils "^2.0.0" schema-utils "^2.7.0" -styled-jsx@^3.2.2, styled-jsx@^3.2.5: +styled-jsx@<3.3.3: + version "3.3.2" + resolved "https://registry.yarnpkg.com/styled-jsx/-/styled-jsx-3.3.2.tgz#2474601a26670a6049fb4d3f94bd91695b3ce018" + integrity sha512-daAkGd5mqhbBhLd6jYAjYBa9LpxYCzsgo/f6qzPdFxVB8yoGbhxvzQgkC0pfmCVvW3JuAEBn0UzFLBfkHVZG1g== + dependencies: + "@babel/types" "7.8.3" + babel-plugin-syntax-jsx "6.18.0" + convert-source-map "1.7.0" + loader-utils "1.2.3" + source-map "0.7.3" + string-hash "1.1.3" + stylis "3.5.4" + stylis-rule-sheet "0.0.10" + +styled-jsx@^3.2.2: version "3.2.5" resolved "https://registry.yarnpkg.com/styled-jsx/-/styled-jsx-3.2.5.tgz#0172a3e13a0d6d8bf09167dcaf32cf7102d932ca" integrity sha512-prEahkYwQHomUljJzXzrFnBmQrSMtWOBbXn8QeEkpfFkqMZQGshxzzp4H8ebBIsbVlHF/3+GSXMnmK/fp7qVYQ==