-
-
Notifications
You must be signed in to change notification settings - Fork 13
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(DRAFT): use acorn
, estree
and esrap
#100
base: main
Are you sure you want to change the base?
Conversation
|
commit: |
I think it'd be preferrable to just duplicate it in the short-term than to add a dependency on
That would be nice, but I wouldn't necessarily block on it. It will be a huge cleanup just to get this done and get off of recast, so if there are some things left for followups that would be fine |
I was thinking about a custom package just for those types, but copying over should also work, if we want proceed with this |
Closes #94
Closes #44
Benefits
svelte
ecosystemesrap
Downsides
esrap
Depends on Rich-Harris/esrap#13. Currently published as
esrap-typescript-temp
for ease of use for testing. Otherwise, this would require usingpnpm link
locally with the branch mentioned before.If we want to proceed with this (which i think we should), this needs to be done
packages/ast-tooling/ts-estree.ts
seperately so that it can also be used insideesrap
. Later they should probably live insideacorn-typescript
once we fork itesrap
understand what aTSModuleDeclaration
is and how to print itesrap
according to the types above. This will probably also require way more types in this new packageesrap
and publish it