Svelte VSCode Web Extension
This is an unofficial port of the Svelte VSCode extension to VSCode web. Web extensions can run in both standalone vscode and browser-based web vscode (used in e.g. github.dev, github1s.com, vscode.dev...). Web extensions have some limitations.
Templating engines (pug, cofeescript...) and styling engines (sass, less...) aren't currently supported. Importing Svelte components from typescript isn't supported either.
See it in action in github.dev here (Install the recommended extension when asked)
This is still a work in progress, feel free to create issues in the project repo.
I started from the web extension starter template but switched to esbuild.
The official language tools repo is vendored ~~but currently unmodified~~ and has some small changes marked with a
Typescript support is preconfigured
Marketplace extension url: https://marketplace.visualstudio.com/items?itemName=asafamr.svelte-web
start esbuild watch with
run in vscode with
run in browser with
compile minified with