Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Can i use swc-loader with babel-loader(for using specific babel plugin) ? #61

Open
Inhye-Cheong opened this issue Jul 26, 2022 · 1 comment

Comments

@Inhye-Cheong
Copy link

Inhye-Cheong commented Jul 26, 2022

I am using yarn pnp, so I cannot use the plugin provided by SWC.
So, I need to use babel-plugin-styled-components using babel-loader.

Can I use it with swc-loader? I think I'm writing the webpack config wrong or it's not working. I think it would be helpful if you write just one webpack config example.

Below is the library I am using.
webpack5
typescript(^4.4.3)
react17
babel-loader
@babel/core @babel/preset-env @babel/preset-react ``@babel/preset-typescript @babel/runtime
babel-plugin-styled-components

@krutoo
Copy link

krutoo commented Dec 23, 2022

looks like accroding to docs you can use it together:
https://swc.rs/docs/usage/swc-loader#with-babel-loader

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants