Fix emotion patch issue for 11.5
Summary: Fixed the patch of emotion/cache, which should fix failing master builds Reviewed By: lblasa Differential Revision: D32244641 fbshipit-source-id: becde569aa712f36ea63af6ce130aceff5807610
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e5bc40c59f
commit
2849c6b562
36
desktop/patches/@emotion+cache+11.5.0.patch
Normal file
36
desktop/patches/@emotion+cache+11.5.0.patch
Normal file
@@ -0,0 +1,36 @@
|
||||
diff --git a/node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js b/node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js
|
||||
index 9a906b4..57f9d9d 100644
|
||||
--- a/node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js
|
||||
+++ b/node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js
|
||||
@@ -158,9 +158,10 @@ var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {
|
||||
return;
|
||||
}
|
||||
|
||||
- unsafePseudoClasses.forEach(function (unsafePseudoClass) {
|
||||
- console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
|
||||
- });
|
||||
+ // we're not doing SSR and not interested in pedantic errors
|
||||
+ // unsafePseudoClasses.forEach(function (unsafePseudoClass) {
|
||||
+ // console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
|
||||
+ // });
|
||||
}
|
||||
};
|
||||
};
|
||||
diff --git a/node_modules/@emotion/cache/dist/emotion-cache.esm.js b/node_modules/@emotion/cache/dist/emotion-cache.esm.js
|
||||
index 5e5fa89..781c69a 100644
|
||||
--- a/node_modules/@emotion/cache/dist/emotion-cache.esm.js
|
||||
+++ b/node_modules/@emotion/cache/dist/emotion-cache.esm.js
|
||||
@@ -149,9 +149,10 @@ var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {
|
||||
return;
|
||||
}
|
||||
|
||||
- unsafePseudoClasses.forEach(function (unsafePseudoClass) {
|
||||
- console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
|
||||
- });
|
||||
+ // we're not doing SSR and not interested in pedantic errors
|
||||
+ // unsafePseudoClasses.forEach(function (unsafePseudoClass) {
|
||||
+ // console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
|
||||
+ // });
|
||||
}
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user