Skip to content

Commit 80af644

Browse files
committed
workaround for emotion-js/emotion#2836
1 parent d148999 commit 80af644

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"packageManager": "[email protected]",
2525
"pnpm": {
2626
"patchedDependencies": {
27+
"@emotion/cache": "patches/@emotion__cache.patch",
2728
"@preact/preset-vite": "patches/@preact__preset-vite.patch",
2829
"@prefresh/core": "patches/@prefresh__core.patch",
2930
"astro": "patches/astro.patch",

patches/@emotion__cache.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/dist/emotion-cache.cjs.js b/dist/emotion-cache.cjs.js
2+
index 3019c2ec3195c20729f32ee76f39ce6559c72423..c8238cc7ad7a4c38e812b1c6f3cddbd82482f129 100644
3+
--- a/dist/emotion-cache.cjs.js
4+
+++ b/dist/emotion-cache.cjs.js
5+
@@ -442,7 +442,7 @@ createCache(options
6+
) => string | void */
7+
8+
9+
- var omnipresentPlugins = [compat, removeLabel];
10+
+ var omnipresentPlugins = [removeLabel];
11+
12+
if (isBrowser) {
13+
var currentSheet;

pnpm-lock.yaml

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)