Skip to content

she's small as a dog now!

Compare
Choose a tag to compare
@tonyketcham tonyketcham released this 18 Jan 18:35

Rollup was previously bundling the minified p5 lib with the compiled js which is totally unnecessary given that p5 is a peer dependency.

Now that's not a problem. The new unpacked size of the build is optimized down to only 26.4 kB.
Just for comparison, it was previously 1.25 MB. That's a whopping 97.89% savings in bundle size!

  • chore: package.json, rollup.config.js cleanup 4ed82e6
  • Reduce bundle size by explicitly removing p5 from bundle 26f3356
  • Other commits of me goofin around tryna get even more bundle savings but I took it too far and reverted