Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for SWC #583

Open
lone-cloud opened this issue Jul 18, 2022 · 8 comments
Open

Add support for SWC #583

lone-cloud opened this issue Jul 18, 2022 · 8 comments

Comments

@lone-cloud
Copy link

lone-cloud commented Jul 18, 2022

SWC (https://github.com/swc-project/swc) is a more performant babel replacement that's being shipped with some frameworks like Next.js
This library only appears to work strictly with babel and I was not yet able to figure out how to get it working with SWC's code instrumentation plugin: https://github.com/kwonoj/swc-coverage-instrument

@MattyBalaam
Copy link

@arendjantetteroo
Copy link

@MattyBalaam which steps did you take to set this up?

@MattyBalaam
Copy link

@arendjantetteroo I can't recall, but I think I just followed the readme

@renatojf
Copy link

renatojf commented Feb 1, 2023

Any updates on this topic?
Trying to setup with the plugin, but it does not work :(

@MattyBalaam
Copy link

Thanks for the downvotes guys 😆

The readme was pretty straightforward I have to say, here’s a screenshot of our loader config but it‘s no different from the readme.

Screenshot 2023-03-14 at 13 28 41

Unfortunately, this has stopped working with @swc/core 1.3.39

@Mistrain-y-y
Copy link

Thanks for the downvotes guys 😆

The readme was pretty straightforward I have to say, here’s a screenshot of our loader config but it‘s no different from the readme.

Screenshot 2023-03-14 at 13 28 41

Unfortunately, this has stopped working with @swc/core 1.3.39

should i write in next.config.js?

@MattyBalaam
Copy link

MattyBalaam commented Aug 1, 2023

Thanks for the downvotes guys 😆
The readme was pretty straightforward I have to say, here’s a screenshot of our loader config but it‘s no different from the readme.
Screenshot 2023-03-14 at 13 28 41
Unfortunately, this has stopped working with @swc/core 1.3.39

should i write in next.config.js?

I don't know about next config, we don't use it. This is a webpack config for compiling react components

@jasonmit
Copy link

Any traction on this? Not supporting Next out-of-the box seems like a miss for Cypress.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants