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.
webpack5typescript(^4.4.3)
react17babel-loader@babel/core@babel/preset-env@babel/preset-react ``@babel/preset-typescript@babel/runtimebabel-plugin-styled-components
I am using
yarn pnp
, so I cannot use the plugin provided by SWC. So, I need to usebabel-plugin-styled-components
usingbabel-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