svelte-package only work with typescript?

Viewed 13

Firt when i try to run yarn package, the cmd tell me to include this in jsconfig.

"extends": "./.svelte-kit/tsconfig.json",

Even though my project was did in Javascript,i put it, and tried to run yarn package, and its show that i need to install svelte2tsx to continue My jsconfig.json is like this:

 "extends": "./.svelte-kit/tsconfig.json",
 "compilerOptions": {
   "baseUrl": ".",
   "paths": {
     "$lib":["src/lib"],
     "$lib/*":["src/lib/*"],
     "$modules/*": [
       "src/modules/*"
     ],
     "$components/*": [
       "src/modules/shared/components/*"
     ], 
   }
 }
}
0 Answers
Related