swc-plugins
swc-plugins copied to clipboard
Standalone React helpers plugin
Hi team!
Amazing work so far on all of your efforts to speed up the web!
I come with a request: it would be super nice if the React utilities plugin (especially the prop-types removal transform) could be it's own, standalone plugin that can be used within swc itself. The reason is that using things like @swc/jest does not allow calling code like import { Compiler } from "@modern-js/swc-plugins";, and it needs to get an swc config instead. If the plugin could be used as an independent swc plugin, just like @swc/plugin-styled-components works for example, that would be awesome!
Thank you!