Skip to content
Snippets Groups Projects
Commit 5293026c authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Upgrade configurations.

parent 33ff1574
No related branches found
No related tags found
No related merge requests found
const sveltePreprocess = require("svelte-preprocess") const sveltePreprocess = require("svelte-preprocess")
const node = require("@sveltejs/adapter-node") const node = require("@sveltejs/adapter-node")
const pkg = require("./package.json")
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */
module.exports = { module.exports = {
...@@ -22,11 +21,5 @@ module.exports = { ...@@ -22,11 +21,5 @@ module.exports = {
// hydrate the <div id="svelte"> element in src/app.html // hydrate the <div id="svelte"> element in src/app.html
target: "#svelte", target: "#svelte",
vite: {
ssr: {
noExternal: Object.keys(pkg.dependencies || {}),
},
},
}, },
} }
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
*/ */
"importsNotUsedAsValues": "error", "importsNotUsedAsValues": "error",
"isolatedModules": true, "isolatedModules": true,
"resolveJsonModule": true,
/** /**
To have warnings/errors of the Svelte compiler at the correct position, To have warnings/errors of the Svelte compiler at the correct position,
enable source maps by default. enable source maps by default.
...@@ -22,8 +23,6 @@ ...@@ -22,8 +23,6 @@
"allowJs": true, "allowJs": true,
"checkJs": true, "checkJs": true,
"paths": { "paths": {
"$app/*": [".svelte/dev/runtime/app/*", ".svelte/build/runtime/app/*"],
"$service-worker": [".svelte/build/runtime/service-worker"],
"$lib/*": ["src/lib/*"] "$lib/*": ["src/lib/*"]
} }
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment