Skip to content

Commit 81ef4f2

Browse files
committed
refactor(tools): readability
1 parent 453280b commit 81ef4f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/pfe-tools/ssr/global.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ export async function renderGlobal(
88
html: string,
99
importSpecifiers: string[],
1010
): Promise<string> {
11-
// avoid tsconfig problems
12-
await import(['@patternfly', 'pfe-core', 'ssr-shims.js'].join('/'));
11+
// hack to avoid circular typescript project reference
12+
const spec = '@patternfly/pfe-core/ssr-shims.js';
13+
await import(spec);
1314
const { ssr } = await import('./ssr.js');
1415
await Promise.all(importSpecifiers.map(x => import(x)));
1516
return ssr(html);
1617
}
17-

0 commit comments

Comments
 (0)