DEV Community

Discussion on: Why do bundlers import module fields but don't transpile by default?

Collapse
 
jordienr profile image
Jordi Enric

Well, sometimes you want to bundle but don't want to transpile. The best thing about webpack is that you can configure it however you like.

Collapse
 
sebnitu profile image
Sebastian Nitu

Yeah, totally. I love webpack too and have found ways to configure a bundle and resolve the issue in both webpack and rollup. I guess my general question is why does it act this way by default? It feels very counter-intuitive and while I was searching for solutions I noticed A LOT of similar posts of people trying to resolve that same issue.