swc-project / swc-loader

Moved to https://github.com/swc-project/pkgs
MIT License
394 stars 29 forks source link

[Question] swc-loader bundle size #76

Closed Solo-steven closed 1 year ago

Solo-steven commented 1 year ago

Hi, currently I want to replace babel with SWC for speeding up my project. I change my babel-loader to swc-loader, it make speed faster, but it also makes my bundle size bigger ( increase from 132MB to 174MB ), I want to ask is this behavior is normal or maybe there are somthing i can configure to make my bundle size smaller , thank ~

my babelrc config :

babel-config

my webpack loader config:

loader-config

bundle size change :

kdy1 commented 1 year ago

It's not expected, but you need to provide a repro

Solo-steven commented 1 year ago

Hi @kdy1 thanks for your reply, since this repo this private to my company, I would try my best to create a repo to reproduce the problem if possible, I will leave some comments if I reproduce is created, thanks