Skip to content
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

Support AST transforms #2729

Open
samuelgja opened this issue Apr 25, 2023 · 2 comments
Open

Support AST transforms #2729

samuelgja opened this issue Apr 25, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@samuelgja
Copy link

samuelgja commented Apr 25, 2023

What is the problem this feature would solve?

Just idea to expose bun code ast in transpiler api.

With this other implementation can be done, maybe custom bundlers, etc.

What is the feature you are proposing to solve the problem?

It can open new ways how to use transpiler api.
Also do not rely on 3d party libs like meriyah, acorn or babel to parse ast from a code.

What alternatives have you considered?

For example it can provide ast in ESTree format, or maybe even with typescript defs - like swc do.

Thanks. Btw, It's just idea and thumbs up for bun 👍
Close it if it's not relevant.

@samuelgja samuelgja added the enhancement New feature or request label Apr 25, 2023
@colinhacks colinhacks changed the title Bun ast Bun AST Apr 26, 2023
@vjpr
Copy link
Contributor

vjpr commented Aug 6, 2023

@huseeiin
Copy link
Contributor

huseeiin commented Aug 6, 2024

i'd also love if it included "visitors" or "selectors" (its the same thing) like in babel or eslint. this feature was removed from swc (which is way faster than babel) though. that's why bun would be the best and fastest ast parser if it included visitors/selectors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants