question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

https://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.

  1. No support for babel-plugin-macros (which I could live without)
  2. 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:closed
  • Created 4 years ago
  • Reactions:13
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
ashsearlecommented, Aug 22, 2022
1reaction
stale[bot]commented, Jul 10, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Implementing a plugin - SWC
As plugin is written in the rust programming language and built as a .wasm file, you need to install rust toolchain and wasm...
Read more >
how to use plugin like 'babel-plugin-import' #3042 - GitHub
The only possible solution is to chain a babel before swc, and I'm still wondering why such a legacy plugin has such a...
Read more >
swc-plugin | Format.JS
swc -plugin ... Process string messages for translation from modules that use react-intl, specifically: Parse and verify that messages are ICU-compliant w/o any ......
Read more >
swc-plugin-transform-import - npm
swc plugin for transforming import path to optimize bundle size. Latest version: 1.2.0, last published: 9 months ago.
Read more >
gatsby-plugin-swc
It uses @parcel/css for CSS minification. How to install and use. yarn add -D gatsby-plugin-swc.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found