Skip to content

Commit

Permalink
chore: remove pre-1.0 remnants (#10436)
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatiusmb authored Jul 26, 2023
1 parent 29abd31 commit 7aa16ba
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/kit/src/core/adapt/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export function create_builder({
write(dest, fallback);
},

generateManifest: ({ relativePath, routes: subset }) => {
generateManifest({ relativePath, routes: subset }) {
return generate_manifest({
build_data,
relative_path: relativePath,
Expand Down Expand Up @@ -189,15 +189,7 @@ export function create_builder({
return Array.from(new Set([...server_assets, ...client_assets]));
},

// @ts-expect-error
writePrerendered(dest, opts) {
// TODO remove for 1.0
if (opts?.fallback) {
throw new Error(
'The fallback option no longer exists — use builder.generateFallback(fallback) instead'
);
}

writePrerendered(dest) {
const source = `${config.kit.outDir}/output/prerendered`;
return [...copy(`${source}/pages`, dest), ...copy(`${source}/dependencies`, dest)];
},
Expand Down

0 comments on commit 7aa16ba

Please sign in to comment.