Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork45
chore: useparse
&print
fromsvelte/compiler
#568
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
changeset-botbot commentedMay 18, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
|
pkg-pr-newbot commentedMay 18, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
commit: |
parse
fromsvelte/compiler
parse
&print
fromsvelte/compiler
Closes#94
Closessvelte-add/svelte-add#193
Closessvelte-add/svelte-add#507
This is a pretty rough poc to try and make
sv
work better with.svelte
files. Under the hood, this usessvelte-ast-print
Step 1 (support for svelte files):
@attach
, self closing component tags, transitions, etc)parseSvelte
svelte-ast-print
support indentation and quote styles (I think some of that already works)svelte-ast-print
(first write up:fix: formatting for text nodes xeho91/js-ast#128)Step 2 (reduce deps, different pr probably)
svelte/compiler
andsvelte-ast-print
. Check which hoops we need to jump to make that happen. We could potentially drop the following deps: