You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a monorepo with multiple typescript packages the typescript language server can automagically resolve imports between packages directly to the source file (presumably via in-memory transpilation). This means I don't have to build a package every time I change something in it in order to have those changes (at least the typings) reflected in the dependent packages.
Unfortunately this does not work when importing into .svelte files.
This is how it looks when I did not transpile @module-resolution-repro/lib:
Something appears to get lost in translation when the svelte language server uses the typescript language server 😞 .
Proposed solution
Please look into whether it is possible to support this as it would make monorepos with mixed Svelte and typescript packages much more pleasant to work with.
This is specifically not asking to support this for imports of .svelte files (I gather this would be way more involved). "Just" to enable imports of typescript modules into.svelte files to be resolved as the current typescript language server does it when importing into .ts files.
Description
In a monorepo with multiple typescript packages the typescript language server can automagically resolve imports between packages directly to the source file (presumably via in-memory transpilation). This means I don't have to build a package every time I change something in it in order to have those changes (at least the typings) reflected in the dependent packages.
Unfortunately this does not work when importing into
.svelte
files.This is how it looks when I did not transpile
@module-resolution-repro/lib
:Something appears to get lost in translation when the svelte language server uses the typescript language server 😞 .
Proposed solution
Please look into whether it is possible to support this as it would make monorepos with mixed Svelte and typescript packages much more pleasant to work with.
This is specifically not asking to support this for imports of
.svelte
files (I gather this would be way more involved). "Just" to enable imports of typescript modules into.svelte
files to be resolved as the current typescript language server does it when importing into.ts
files.Alternatives
Run
tsc -b -w
in referenced typescript packages.Additional Information, eg. Screenshots
The text was updated successfully, but these errors were encountered: