Summary: Fixed the patch of emotion/cache, which should fix failing master builds Reviewed By: lblasa Differential Revision: D32244641 fbshipit-source-id: becde569aa712f36ea63af6ce130aceff5807610
37 lines
2.1 KiB
Diff
37 lines
2.1 KiB
Diff
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\".");
|
|
+ // });
|
|
}
|
|
};
|
|
};
|