From 7164496a68745d78ea76f1c103436c6ec811cadf Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Mon, 23 Nov 2020 10:57:59 +0100 Subject: [PATCH] fixed tsconfig, enabled sourcemap --- snowpack.config.js | 4 ++-- svelte.config.js | 1 + tsconfig.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/snowpack.config.js b/snowpack.config.js index a2e2501..2afae11 100644 --- a/snowpack.config.js +++ b/snowpack.config.js @@ -31,13 +31,13 @@ module.exports = { /* ... */ ], installOptions: { - sourceMap: false, + sourceMap: true, }, devOptions: { /* ... */ }, buildOptions: { - sourceMaps: false, + sourceMaps: true, clean: true, }, proxy: { diff --git a/svelte.config.js b/svelte.config.js index 455a336..530de84 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,6 +1,7 @@ const sveltePreprocess = require("svelte-preprocess") module.exports = { preprocess: sveltePreprocess({ + sourceMap: true, defaults: { script: "typescript", }, diff --git a/tsconfig.json b/tsconfig.json index 7639c6c..b4ff67d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "@tsconfig/svelte/tsconfig.json", - "include": ["src/**/*", , "types/**/*"], + "include": ["src/**/*", "types/**/*"], "compilerOptions": { "module": "esnext", "typeRoots": ["./node_modules/@types", "./types"],