CLI Thoughts? #592
Replies: 3 comments 2 replies
-
One question if going with Rust end-to-end is how to handle plugins written in JS. Presumably this would require embedding a JS runtime inside Rolldown. This would be possible, but no small task. |
Beta Was this translation helpful? Give feedback.
-
I think the CLI Which language to implement depends on the requirements you have for the CLI. If the CLI is performance critical, I would prefer to implement it in Rust; if it provides simple bundle functionality like the rollup cli, I think a JS/TS implementation is sufficient. If we will implement it in Rust, we have to figure out how to make the plugin work. rollup plugin is implemented in Node's API, and as already mentioned, it is very difficult to embed a JS runtime equivalent to Node. Since Vite also has a CLI, I think the first thing to consider is what role the rollodown CLI will have. |
Beta Was this translation helpful? Give feedback.
-
My current thoughts:
|
Beta Was this translation helpful? Give feedback.
-
I decided it would be best to pose some open-ended questions before I or anyone else started on a Command Line Interface for rolldown.
What language do we go with?
Do we try to match pre-existing projects?
We don't need to know these answers fully right now but I think these are good starting questions. Personally, I'm leaning towards writing it in Rust and while It'd be more fun to do the tooling from scratch, I think it makes sense to at least preserve the feel of rollup.
Beta Was this translation helpful? Give feedback.
All reactions