Skip to content

Commit

Permalink
rename back to svelte.config.js - otherwise @snowpack/plugin-svelte d…
Browse files Browse the repository at this point in the history
…oesn't see it and adds another instance of svelte-preprocessor

(cherry picked from commit d8dc2f7914e2e9e7f2fea4688e1b40757eab4f23)
  • Loading branch information
angryziber authored and karnilaev committed Jul 18, 2021
1 parent 0ce6245 commit d012e0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 7 additions & 0 deletions svelte.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Note: this file cannot be named .mjs because snowpack-plugin svelte looks for file with .js extension
const preprocess = require('svelte-preprocess')

module.exports = {
dev: process.env.NODE_ENV === 'development',
preprocess: preprocess({typescript: {compilerOptions: {target: 'esnext'}}})
}
6 changes: 0 additions & 6 deletions svelte.config.mjs

This file was deleted.

0 comments on commit d012e0f

Please sign in to comment.