Add SWC Plugin
See original GitHub issuehttps://swc-project.github.io/docs/usage-plugin
Proposal: create an @loadable/swc-plugin
that is similar to @loadable/babel-plugin
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 (https://github.com/facebook/create-react-app/issues/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).
Looking at my own projects, I see only a few things that are blocking me from switching to SWC.
- No support for
babel-plugin-macros
(which I could live without) - No support for
@loadable/babel-plugin
Generally everything else babel does for me is handled by swc preset-env (or isn’t particularly vital to my projects).
Issue Analytics
- State:
- Created 4 years ago
- Reactions:13
- Comments:14 (1 by maintainers)
Top GitHub Comments
See https://github.com/swc-project/plugins/pull/76
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.