Skip to content

Commit

Permalink
fix: regression from using .replaceAll which isn't available in Nod…
Browse files Browse the repository at this point in the history
…e 14
  • Loading branch information
simonhaenisch committed Mar 11, 2023
1 parent 2ad87dc commit 018b52e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/generate-output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export async function generateOutput(

const page = await browser.newPage();

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

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

0 comments on commit 018b52e

Please sign in to comment.