chore: explore parsers and printers #380
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #44
Relates #100
This basically duplicates #100 at this point. See #100 for up and downsides of this approach.
I was initially intending to get rid of a lot more dependencies (like the dependencies for handling html) and use
svelte-ast-print
instead, but this was opening too many issues at the same time. That's why I opted to "only" switch toacorn
andesrap
here, the rest can be done later.Relevant PR's
Benefits
svelte
ecosystemrolldown
#371)recast
esrap
Downsides
TSEstree
as no good public alternative exists, that matchesacorn
s output. We do have@typescript-eslint/types
but that was just the one with the smallest pain points. Still exploring other options.