Replies: 1 comment
-
|
I had the same question too. I'm looking forward to migrating Rollup to Rolldown (also Vite to Rolldown-vite) and replacing swc to oxc. I checked now that all features of Rolldown are ready to migrate. But I can't replace swc with oxc due to swc transformer supports custom plugin but oxc is not. The issue shows case parse by oxc then uses esrap to travel transform and format back to code. Wanna know which is oxc planning and recommended?
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys! I'm very new to rust (and parsing haha) trying to learn because I have a project in mind. The idea is to build a language server that provides a with a bunch of code actions.
I think I can use oxc for parsing and transforming the code. Now the problem is that I don't know exactly what I'm looking for nor what are the mechanics for walking/traversing the AST. The parsing API looks very simple and I was able to parse some code in fact, but what do I do next with the parsed result? In theory I should do the transformations but when I look at
oxc_transformerAPI reference nothing seems like what I need to "transform" or "refactor" the code, it looks like it's more for transpiling to older version of js and stuff like that.I want to do basically what jscodeshift allows me to do, grab some code from some source and make some changes without touching the rest of the file.
Do you have any ideas? Care, I don't even know if I'm using the right terms for things here haha.
Thanks for your time 🤘🏽
Beta Was this translation helpful? Give feedback.
All reactions