Skip to content

Commit 3329387

Browse files
authored
Add preprocess to the adapter-static code example
Without preprocess you get "unexpected token" errors when importing types, as described here: https://stackoverflow.com/questions/72846408/sveltekit-typescript-parse-error-when-importing-types/72846510#72846510
1 parent fb24644 commit 3329387

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

documentation/docs/25-build-and-deploy/50-adapter-static.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ Install with `npm i -D @sveltejs/adapter-static`, then add the adapter to your `
1414
// @errors: 2307
1515
/// file: svelte.config.js
1616
import adapter from '@sveltejs/adapter-static';
17+
import preprocess from 'svelte-preprocess';
1718

1819
export default {
20+
preprocess: preprocess(),
1921
kit: {
2022
adapter: adapter({
2123
// default options are shown. On some platforms

0 commit comments

Comments
 (0)