swc-plugins icon indicating copy to clipboard operation
swc-plugins copied to clipboard

Standalone React helpers plugin

Open RDIL opened this issue 1 year ago • 0 comments

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!

RDIL avatar Nov 08 '24 01:11 RDIL