diff --git a/patches/@patternfly+pfe-core+4.0.2.patch b/patches/@patternfly+pfe-core+4.0.2.patch new file mode 100644 index 0000000000..0d147a66fc --- /dev/null +++ b/patches/@patternfly+pfe-core+4.0.2.patch @@ -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() {