Skip to content

Commit

Permalink
move preprocess option where it belongs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Apr 13, 2021
1 parent 9bb747f commit 3c41d07
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/chatty-steaks-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

Fix preprocess option in template
8 changes: 4 additions & 4 deletions packages/create-svelte/shared/+typescript/svelte.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ const pkg = require('./package.json');

/** @type {import('@sveltejs/kit').Config} */
module.exports = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: sveltePreprocess(),

kit: {
// By default, `npm run build` will create a standard Node app.
// You can create optimized builds for different platforms by
// specifying a different adapter
adapter: node(),

// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: sveltePreprocess(),

// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte',

Expand Down

0 comments on commit 3c41d07

Please sign in to comment.