Replies: 6 comments 3 replies
-
esbuild https://github.com/evanw/esbuild/blob/main/internal/js_parser/js_parser_lower.go |
Beta Was this translation helpful? Give feedback.
-
TypeScript https://github.com/microsoft/TypeScript/tree/main/src/compiler/transformers |
Beta Was this translation helpful? Give feedback.
-
I personally think that whatever we base our transformers on, We should keep them decoupled and have them configurable with I'm partially familiar with typescript and babel since I've studied them before and in the case of babel right now I have a pretty good understanding of how things are laid out there for transformers since I was reading them searching for easier ones to implement first. That is actually where I thought of #2818 because it would've provided most of the prerequisites of Babel API given that our approach is much bare metal than theirs. I prefer a more rusty approach, For example, the
Since we already have some of the easier transformers ported from Babel, What were some of the more painful and hideous things to do while porting? We might have something here if we figure out the rough edges. |
Beta Was this translation helpful? Give feedback.
-
Whichever we pick we'll need to conform to their test suite. tsc and babel has the most comprehensive test suite, while esbuild have tests all over the place. |
Beta Was this translation helpful? Give feedback.
-
I'm going to make the call here. We'll continue work with babel, due to babel being
|
Beta Was this translation helpful? Give feedback.
-
I didn't have anyone to talk to when I started the transformation prototype. I modeled it after babel because of its completeness.
The current dx of porting babel is painful and burned both me and @Dunqing out.
But now we have more people involved (@Dunqing, @milesj, @rzvxa and @overlookmotel),
I'd like to rethink about this and plan it out so we can finish it quickly.
The end goal is to make this work in Rolldown, asap. The current approach is not working.
Beta Was this translation helpful? Give feedback.
All reactions