Webpack Best Practices

Hello all!

I’ve been building our applications in TypeScript, and I’m wondering if I should bundle Babylon with my modules using Webpack, or have it in a seperate file. Are there performance advantages/disadvantages? I can’t seem to find anything conclusive online.

Cheers!

One advantage is tree shaking, so your application will load faster. If you are doing code splitting then you can also delay loading until needed. I can’t think of any performance benefits besides the smaller footprint.

1 Like

Thanks.