How to configure Deno to use an SWC-Plugin to transpile TSX?
I want to use the swc-inferno-plugin to transpile TSX.
An example of the configuration using webpack with a .swcrc-file can be found here: https://github.com/infernojs/inferno-swc-example
The plugin performs several optimisations during transpilations so just switching the import source etc. won't help.
Is there some way to configure Deno to use SWC-plugins for TSX-files?
GitHub
GitHub - infernojs/inferno-swc-example
Contribute to infernojs/inferno-swc-example development by creating an account on GitHub.
3 Replies
No, the transpilation pipeline can't be customized. You'll need to pull nom package for swc and do it programmatically
At the moment, there is no API to change or modify the transpilation internals in Deno. If you rely on these plugins with Deno you'd be best served by using a bundler
Thank you!