Anthony Fu

Results 1228 comments of Anthony Fu

Can you elaborate more about what features you'd expect?

Yeah I think it makes sense to have a submodule for that. PR Welcome :)

Yes. I think we could have `magicast/browser` or `magicast/core` for that.

https://github.com/unjs/magicast/blob/20da32ed1e0ba245981c7f67ed14aac879bf484c/src/code.ts#L34 You should be able to access the program node with `mod.$ast.program`, won't it?

Sure, feel free to give it a try! Thanks

Sounds reasonable. I think we could use `$append` and `$prepend` on every node? Prefix with `$` indicates it's a special operation and avoids conflicts with the namespace.

This feels a bit like recast's bug to me. As I checked, we seems to be detecting them correctly and passing `{ useTabs: true, tabWidth: 1 }`. And normally I...

It's based on the new abstraction of the new env pluginConainter - it would require certain efforts to redo it in main - and then solving the conflicts in v6...