Conrad Buck

Results 263 comments of Conrad Buck

For the record though, my tool just helps you extrapolate tokens from the AST. It can overwrite properties of nodes, but it doesn't need to. It just helps you be...

Just for fun, here's what I imagine being possible. I'm hoping this helps make it clear why I think a mutable tree is actually a really great and powerful thing:...

The difference between this kind of mutating the AST and the kind of the mutations you're trying to avoid I think is that these are mutations expressed in terms of...

My plan is to actually build this integration for a small subset of syntax (imports). That way we can discuss the specific mechanisms by which it works, and I can...

OK the challenges in implementing this are obviously... large. The best thing I could say about the possibility of actually building something is that the `doc` data structure will be...

No, ok, I think I can do it all, and I don't need anything major from prettier. Here's exactly how I think the code will look: ```js const __prettier =...

I am pleased to say that I've finished enough of the `cst-tokens` library to start experimenting with the prettier integration as shown in the example above. The next major steps...

I too have this error. It seems to happen if I install Naomi and then Typescript Syntax, however at this point I no longer have any other syntax plugins installed...

I believe that happens since the macro code is called [in the visitor for each import/require declaration](https://github.com/kentcdodds/babel-plugin-macros/blob/d613985d297a73aeb3d7c8fad18a4944416b0bed/src/index.js#L95-L125). Would you mind sharing your real use case? `babel-plugin-macros` has never supported that...

Are you remembering to `jest --clearCache` when you make changes to jest's internal transpilation? It can be easy to pass over a configuration that does really work that way. Also...