From 5293026c58e99f52e9b38b70e33d84ef20f3f5d1 Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart <emmanuel@raviart.com> Date: Mon, 26 Apr 2021 17:27:48 +0200 Subject: [PATCH] Upgrade configurations. --- svelte.config.cjs | 7 ------- tsconfig.json | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/svelte.config.cjs b/svelte.config.cjs index 5838b0dc6..037e78036 100644 --- a/svelte.config.cjs +++ b/svelte.config.cjs @@ -1,6 +1,5 @@ const sveltePreprocess = require("svelte-preprocess") const node = require("@sveltejs/adapter-node") -const pkg = require("./package.json") /** @type {import('@sveltejs/kit').Config} */ module.exports = { @@ -22,11 +21,5 @@ module.exports = { // hydrate the <div id="svelte"> element in src/app.html target: "#svelte", - - vite: { - ssr: { - noExternal: Object.keys(pkg.dependencies || {}), - }, - }, }, } diff --git a/tsconfig.json b/tsconfig.json index 3501f7be2..1d2637b85 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,6 +10,7 @@ */ "importsNotUsedAsValues": "error", "isolatedModules": true, + "resolveJsonModule": true, /** To have warnings/errors of the Svelte compiler at the correct position, enable source maps by default. @@ -22,8 +23,6 @@ "allowJs": true, "checkJs": true, "paths": { - "$app/*": [".svelte/dev/runtime/app/*", ".svelte/build/runtime/app/*"], - "$service-worker": [".svelte/build/runtime/service-worker"], "$lib/*": ["src/lib/*"] } }, -- GitLab