astexplorer
astexplorer copied to clipboard
Support adding a babel plugin ?
It would be really nice if we support a babel plugins, preferably babel typescript plugin...
Thanks
Can you elaborate? astexplorer provides access to a number of parsers and transformers. Where do you want to have this support?
Yeah, So let me explain this. Typescript doesn't have clean and easy way to transform TS-AST. However Babel-typescript plugin can create this AST nodes. I was thinking If we can have support for this, we can use AST transform to explore and write TS transformers. Currently any TS syntax throws error in transformation
Note that the transform you pick always uses its default parser — there’s no way to use the TypeScript parser with Babel. However, if you use Babel 7 and Babylon 7, you can click on the ⚙️ button and enable the “typescript” option to parse TypeScript.
I'd love this as well; I'm writing a plugin for the pipeline operator which requires an extra syntax plugin to parse correctly.