Closed
Description
https://swc-project.github.io/docs/usage-plugin
Proposal: create an swc-plugin-macros
that is similar to babel-plugin-macros
SWC is increasing in popularity. It is aiming to be a drop-in replacement for babel with some significant speed improvements. It already has a webpack loader.
There is some early interest in how it might integrate with create-react-app (facebook/create-react-app#8060). Looking at which babel plugins create-react-app uses it seems like most of those things are supported by swc (with only a few exceptions).
SWC appears to be missing support for:
babel-plugin-macros
(important for some of my projects)babel-plugin-transform-react-remove-prop-types
(less important in TypeScript projects)babel-plugin-transform-flow-strip-types
(generally SWC has no Flow support 🤷🏻♂️)
Generally everything else babel does for me is handled by swc preset-env (or isn't particularly vital to my projects).
Metadata
Metadata
Assignees
Labels
No labels