Hacker News new | ask | show | jobs
by mwiedmann 3611 days ago
The .js file is over 10,000 lines of code. How did it get so bloated from your 450 lines of code?
4 comments

It includes imported libraries, primarily regl[1] which is 8228 lines long.

[1]: https://github.com/mikolalysenko/regl/blob/gh-pages/dist/reg...

I didn't spend much time optimising the size. I thought it loaded fast enough for me. But maybe it doesn't load as fast on a slow connection...
It's probably a bundled JS file containing all of his dependencies.
Node
While the tooling uses Node, the bloat comes from the bundle which includes canvas-fit, regl, and gl-mat4.
Since when do libraries used in your code classify as 'bloat'?