Automatically populate compilerOptions.paths
in the generated .svelte-kit/tsconfig.json
file based on svelte.config.js
#4496
Labels
feature / enhancement
New feature or request
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Describe the problem
Currently, when you want to add aliases you need to add them in two places, namely
svelte.config.js
andtsconfig.json
, and also remember to always keep them in sync.So, for example:
svelte.config.js
:You'll have to have:
tsconfig.json
:Actually, you also have to add the default
$lib
alias to yourtsconfig.json
as well, since otherwise SvelteKit will display a warning complaining about this. So it'll be more like:tsconfig.json
:Which is not exactly a great developer experience.
Describe the proposed solution
Since we now have a
tsconfig.json
in the.svelte-kit
directory, it would be nice if the aliases defined insvelte.config.js
were automatically detected and added to the auto-generated.svelte-kit/tsconfig.json
file, so as to eliminate the need for the developer to do this manually.Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response
The text was updated successfully, but these errors were encountered: