Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Draft
manuel3108 wants to merge4 commits intomain
base:main
Choose a base branch
Loading
fromchore/svelte-compiler

Conversation

manuel3108
Copy link
Member

Closes#94
Closessvelte-add/svelte-add#193
Closessvelte-add/svelte-add#507

This is a pretty rough poc to try and makesv work better with.svelte files. Under the hood, this usessvelte-ast-print

Step 1 (support for svelte files):

  • support for svelte specifc html syntax (@attach, self closing component tags, transitions, etc)
  • check and adapt all other usages ofparseSvelte
  • makesvelte-ast-print support indentation and quote styles (I think some of that already works)
  • fix formatting mistakes insvelte-ast-print (first write up:fix: formatting for text nodes xeho91/js-ast#128)

Step 2 (reduce deps, different pr probably)

  • we currently use many different libraries for parsing and serializing JS / CSS / HTML. All of that could in theory be handled bysvelte/compiler andsvelte-ast-print. Check which hoops we need to jump to make that happen. We could potentially drop the following deps:
    • dom-serializer
    • domhandler
    • domutils
    • htmlparser2
    • postcss

@changeset-botchangeset-bot
Copy link

changeset-botbot commentedMay 18, 2025
edited
Loading

⚠️ No Changeset found

Latest commit:ede290f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go.If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@svelte-docs-bot
Copy link

@pkg-pr-newpkg.pr.new
Copy link

pkg-pr-newbot commentedMay 18, 2025
edited
Loading

Open in StackBlitz

npx https://pkg.pr.new/sveltejs/cli/sv@568
npx https://pkg.pr.new/sveltejs/cli/svelte-migrate@568

commit:ede290f

@manuel3108manuel3108 changed the titlechore: useparse fromsvelte/compilerchore: useparse &print fromsvelte/compilerJun 21, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Use{ parse } from 'svelte/compiler' End tags added for self-closing elements HTMLX (aka Svelte's templating language) proper support
1 participant
@manuel3108

[8]ページ先頭

©2009-2025 Movatter.jp