Skip to content

Commit

Permalink
chore: patch core for ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Sep 26, 2024
1 parent 6faec6a commit e69780a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patches/@patternfly+pfe-core+4.0.2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/@patternfly/pfe-core/ssr-shims.js b/node_modules/@patternfly/pfe-core/ssr-shims.js
index d432769..c7a30fb 100644
--- a/node_modules/@patternfly/pfe-core/ssr-shims.js
+++ b/node_modules/@patternfly/pfe-core/ssr-shims.js
@@ -42,6 +42,8 @@ globalThis.IntersectionObserver ?? (globalThis.IntersectionObserver = ObserverSh
// @ts-expect-error: this runs in node
globalThis.MutationObserver ?? (globalThis.MutationObserver = ObserverShim);
// @ts-expect-error: this runs in node
+globalThis.ResizeObserver ?? (globalThis.ResizeObserver = ObserverShim);
+// @ts-expect-error: this runs in node
globalThis.getComputedStyle ?? (globalThis.getComputedStyle = function () {
return {
getPropertyPriority() {

0 comments on commit e69780a

Please sign in to comment.