-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
* fix: ssr resizeobserver shim * chore: test workflow * fix(tools): path
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@patternfly/pfe-tools": patch | ||
"@patternfly/pfe-core": patch | ||
--- | ||
|
||
SSR: add shim for `ResizeObserver` |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,8 @@ export async function renderGlobal( | |
html: string, | ||
importSpecifiers: string[], | ||
): Promise<string> { | ||
await import('./shims.js'); | ||
// avoid tsconfig problems | ||
await import(['@patternfly', 'pfe-core', 'ssr-shims.js'].join('/')); | ||
const { ssr } = await import('./ssr.js'); | ||
Check failure on line 13 in tools/pfe-tools/ssr/global.ts GitHub Actions / SSR Tests (Playwright)elements/pf-accordion/test/pf-accordion.e2e.ts:14:3 › pf-accordion › ssr
Check failure on line 13 in tools/pfe-tools/ssr/global.ts GitHub Actions / SSR Tests (Playwright)elements/pf-avatar/test/pf-avatar.e2e.ts:14:3 › pf-avatar › ssr
Check failure on line 13 in tools/pfe-tools/ssr/global.ts GitHub Actions / SSR Tests (Playwright)elements/pf-back-to-top/test/pf-back-to-top.e2e.ts:14:3 › pf-back-to-top › ssr
Check failure on line 13 in tools/pfe-tools/ssr/global.ts GitHub Actions / SSR Tests (Playwright)elements/pf-background-image/test/pf-background-image.e2e.ts:14:3 › pf-background-image › ssr
Check failure on line 13 in tools/pfe-tools/ssr/global.ts GitHub Actions / SSR Tests (Playwright)elements/pf-badge/test/pf-badge.e2e.ts:14:3 › pf-badge › ssr
Check failure on line 13 in tools/pfe-tools/ssr/global.ts GitHub Actions / SSR Tests (Playwright)elements/pf-banner/test/pf-banner.e2e.ts:14:3 › pf-banner › ssr
Check failure on line 13 in tools/pfe-tools/ssr/global.ts GitHub Actions / SSR Tests (Playwright)elements/pf-button/test/pf-button.e2e.ts:14:3 › pf-button › ssr
Check failure on line 13 in tools/pfe-tools/ssr/global.ts GitHub Actions / SSR Tests (Playwright)elements/pf-card/test/pf-card.e2e.ts:14:3 › pf-card › ssr
Check failure on line 13 in tools/pfe-tools/ssr/global.ts GitHub Actions / SSR Tests (Playwright)elements/pf-chip/test/pf-chip.e2e.ts:14:3 › pf-chip › ssr
Check failure on line 13 in tools/pfe-tools/ssr/global.ts GitHub Actions / SSR Tests (Playwright)elements/pf-clipboard-copy/test/pf-clipboard-copy.e2e.ts:14:3 › pf-clipboard-copy › ssr
|
||
await Promise.all(importSpecifiers.map(x => import(x))); | ||
return ssr(html); | ||
|
This file was deleted.