Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] simplify internal prerender API #5659

Merged
merged 12 commits into from
Jul 21, 2022
4 changes: 2 additions & 2 deletions packages/kit/src/core/prerender/prerender.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readFileSync, writeFileSync } from 'fs';
import { dirname, join } from 'path';
import { pathToFileURL, URL } from 'url';
import { mkdirp, walk } from '../../utils/filesystem.js';
import { mkdirp, posixify, walk } from '../../utils/filesystem.js';
import { installPolyfills } from '../../node/polyfills.js';
import { is_root_relative, normalize_path, resolve } from '../../utils/url.js';
import { queue } from './queue.js';
Expand Down Expand Up @@ -160,7 +160,7 @@ export async function prerender({ config, client_out_dir, manifest_path, log })
return file;
}

const files = new Set(walk(client_out_dir));
const files = new Set(walk(client_out_dir).map((f) => posixify(f)));
benmccann marked this conversation as resolved.
Show resolved Hide resolved
const seen = new Set();
const written = new Set();

Expand Down