3 ms·
I actually can't understand javascript bundling, am I just dumb? I try to build a monorepo and every single time I get errors building my nodejs apis because of
by brigadier132 3y ago
I actually can't understand javascript bundling, am I just dumb? I try to build a monorepo and every single time I get errors building my nodejs apis because of esm / cjs module bundling.
Why do I even need to bundle a nodejs api? My current project's backend is completely in Rust because I actually found that easier to deal with. Kubernetes was easier to figure out for me.
- tubthumper8 3y agoBundling (including dead code elimination) is more used for frontend code to reduce the amount of JavaScript sent over the wire to browser. You don't need to bundle server-side code unless you're using a cloud provider that limits how much source code you can upload or some other limitation like that.