-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deno support #214
Comments
I think it mostly does support it. Let us know if there's some particular difficulty you're having The only issue I'm aware of is denoland/deno#25342 |
I did not find the equivalent of Something that would end up working just like Node, out of the box |
Could you be a bit more specific? To execute the CLI in Deno, you run Is the issue that Testing it out, all seems to be working perfectly fine, including running the dev server:
(note: for now, selecting |
Thanks ! I think it should also be documented (see GitHub Search - It is however not enough and things are broken out of the box
Both indeed Using Maybe also a potential official deno adapter which might have better performance than Deno's node compatibility layer ? Community adapters :
Thanks for this information ! Could you please link the related issue ? What is planned for the svelte cli when that related issue will be closed ? The proposed dev and build commands also need to be updated Also, it is currently mandatory to set |
|
would it be possible to omit the 2 tsconfig files at some point when choosing the deno option? Trying it myself, seems |
that would be nice too indeed. |
This one is particularly annoying and would need to be fixed :
Workaround
{
"type": "module"
} + Restart the LSP |
@zoaha Have you found a workaround for I didn't find any deno workaround for it which, if true, would mean that deno is not fully supported |
This is odd, as I have a sveltekit-adapter-deno project, which runs completely out of
|
@HighPriest How did you generate a project that does not contain this
@zoaha Can you please explain what exactly breaks in your case? I create a test project and created
@Malix-Labs What exactly do you think should be better documented here? If we starting adding a second with for |
Non straightforward package management install
I do also think so But don't you think it's worth it to make svelte able to be installed anywhere easily if the cost is adding those one-shot lines :
|
I did not. @manuel3108 Fun fact: If you create deno.json & populate it with some dependencies, running |
That would be wonderful. CC @Matteo-Hamaimi |
@zoaha have you found a fix ? I don't find how to make |
the $lib alias is added to vite config and .svelte-kit/tsconfig.json automatically by sveltekit. So no, we can't just remove tsconfig files that are required for typescript to understand the project structure. if deno has a different concept for aliases than parsing and using typescripts |
So to summarize:
As far as the cli goes, |
Right, it is probably best to split tasks like that, thanks Manuel ! |
Hey folks !
It would be awesome if the Svelte CLI could also support Deno
Also see denoland/deno#17248
The text was updated successfully, but these errors were encountered: