This commit is contained in:
Wout De Puysseleir 2023-04-21 10:35:20 -07:00
parent 8aeb9cabb0
commit d1706c7426
4 changed files with 20 additions and 1 deletions

View file

@ -16,6 +16,7 @@ let optsClient = {
minify: deploy,
sourcemap: watch ? "inline" : false,
watch,
tsconfig: "./tsconfig.json",
plugins: [
importGlobPlugin(),
sveltePlugin({
@ -36,6 +37,7 @@ let optsServer = {
logLevel: "info",
sourcemap: watch ? "inline" : false,
watch,
tsconfig: "./tsconfig.json",
plugins: [
importGlobPlugin(),
sveltePlugin({

10
assets/copy/tsconfig.json Normal file
View file

@ -0,0 +1,10 @@
{
"compilerOptions": {
"types": ["node"],
"baseUrl": ".",
"paths": {
"$lib": ["svelte"],
"$lib/*": ["svelte/*"]
}
}
}

View file

@ -16,6 +16,7 @@ let optsClient = {
minify: deploy,
sourcemap: watch ? "inline" : false,
watch,
tsconfig: "./tsconfig.json",
plugins: [
importGlobPlugin(),
sveltePlugin({
@ -36,6 +37,7 @@ let optsServer = {
logLevel: "info",
sourcemap: watch ? "inline" : false,
watch,
tsconfig: "./tsconfig.json",
plugins: [
importGlobPlugin(),
sveltePlugin({

View file

@ -1,5 +1,10 @@
{
"compilerOptions": {
"types": ["node"]
"types": ["node"],
"baseUrl": ".",
"paths": {
"$lib": ["svelte"],
"$lib/*": ["svelte/*"]
}
}
}