Skip to content

Commit

Permalink
expose trailingSlash to adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Feb 10, 2022
1 parent 21bfbc6 commit a0da6fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/kit/src/core/adapt/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export function create_builder({ cwd, config, build_data, log }) {
copy,

appDir: config.kit.appDir,
trailingSlash: config.kit.trailingSlash,

createEntries(fn) {
generated_manifest = true;
Expand Down
1 change: 1 addition & 0 deletions packages/kit/types/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface Builder {
mkdirp(dir: string): void;

appDir: string;
trailingSlash: 'always' | 'never' | 'ignore';

/**
* Create entry points that map to individual functions
Expand Down

0 comments on commit a0da6fb

Please sign in to comment.