Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Use acorn instead of recast #548

Open
manuel3108 opened this issue Aug 12, 2024 · 0 comments
Open

Use acorn instead of recast #548

manuel3108 opened this issue Aug 12, 2024 · 0 comments
Labels
enhancement New feature or request solved-by-rewrite

Comments

@manuel3108
Copy link
Member

Topic

core

Description

We should consider switching to acorn and acorn-typescript to use the same tooling as the svelte

This probably also involves switching from ast-types to estree for types. Functionality wise I do not see any major benefit. As we are currently using @babel/parser with recast we should be able to drop a few MB of bundle size thoo.

via recast via acorn
recast 1 MB acorn 0.5 MB
@babel/parser 4 MB acorn-typescript 0.5 MB
Total 5 MB Total 1 MB

Describe the solution you'd like

No response

@manuel3108 manuel3108 added the enhancement New feature or request label Aug 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request solved-by-rewrite
Projects
None yet
Development

No branches or pull requests

1 participant