[!WARNING] This was done as a half-joke, half-serious attempt at squeezing every last bit out of an Astro + Svelte build. If it’s not obvious already: THIS IS NOT MEANT FOR PRODUCTION.
When Astro finishes bundling, this thing crawls through dist/
like a raccoon with ADHD, doing some or all of the following:
svelte-x18sz2 → a
👍👍--a
, --b
, --c
...a.js
, b.css
, c.js
, etc.All of these are enabled by default, so you’ll need to opt out in the plugin options if something breaks. And trust me, it will.
Minification fails and you ship a broken site? — haha whoops 🐈
⚠️ Don’t.
But if you want anyways:
bun add -d github:eye-wave/i-am-a-surgeon
Oh, and if you’re not using Bun or a Unix-based OS, this won’t work 😸
It should be crossplatform and work on node, but i haven't tested yet 🙀.
Licensed under the GNU General Public License v3.0 (GPL-3.0).