Skip to content

Commit 018b52e

Browse files
committed
fix: regression from using .replaceAll which isn't available in Node 14
1 parent 2ad87dc commit 018b52e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/generate-output.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export async function generateOutput(
7070

7171
const page = await browser.newPage();
7272

73-
const urlPathname = join(relativePath, 'index.html').replaceAll(sep, posix.sep);
73+
const urlPathname = join(relativePath, 'index.html').split(sep).join(posix.sep);
7474

7575
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
7676
await page.goto(`http://localhost:${config.port!}/${urlPathname}`); // make sure relative paths work as expected

0 commit comments

Comments
 (0)