#BundleStrategy
Day 22 — you can now use the `bundleStrategy: 'inline'` option to build an entire SvelteKit app — code, styles, fonts, images, audio, and so on — into a single `.html` file that you can share on a floppy disk

🎁 docs svelte.dev/docs/kit/con...
🎁 demo svelte-snek.vercel.app (needs keyboard for now!)
December 22, 2024 at 5:49 PM
This got even easier with SvelteKit's new `bundleStrategy: 'inline'` option.

Just copy `index.html` to your ESP32 or RP2040..
Serving a SvelteKit app from an ESP32 microcontroller:
December 24, 2024 at 5:08 AM
If you are interested in my opinion my top 5 would be

1. `createSubscriber`
2. `$inspect.trace`
3. `bundleStrategy: 'inline'`
4. `$app/state`
5. `svelte:boundary`

Which one is your favorite?
🎅🎄🎁 ADVENT OF SVELTE 🎅🎄🎁

We're going to ship one thing a day every day from now until Christmas. Wish us luck! svelte.dev/blog/advent-...

First up...
Advent of Svelte
Twenty-four days, twenty-four features
svelte.dev
December 24, 2024 at 8:37 PM
Day 19 — single-file bundles for SvelteKit. By default, your apps use code-splitting to ensure that you only load the code for the current page. But sometimes you need a single bundle for the whole app, and you can now do that with the new `bundleStrategy` option

🎁 docs svelte.dev/docs/kit/con...
December 19, 2024 at 3:16 PM
I needed an orchestrator, like @kestra.io or windmill.dev.

4 hours later, I have my own. Windmill benchmarks coming soon™.

A single binary that ships a @svelte.dev app as a single HTML file - bundleStrategy: inline.

Run the same binary in worker mode to scale workflow execution horizontally 🏎️.
July 7, 2026 at 5:50 AM
This is awesome, nice research!

I went down a similar path earlier this year, but ended up with SvelteKit's `bundleStrategy: "inline"` instead. I got a single HTML file my CLI downloaded and opened locally.

svelte.dev/docs/kit/con...
Configuration • SvelteKit Docs
Configuration • SvelteKit documentation
svelte.dev
December 28, 2025 at 8:38 PM
We're very lucky to benefit from your work. Thanks for all you do, especially for helping to make migration to svelte 5 from 4 so easy. And also the new bundleStrategy.
January 8, 2025 at 3:22 PM
for scripts, yes. i forgot to account for styles though — good catch! opened github.com/sveltejs/kit...
fix: add CSP hashes/nonces to inline styles when using by Rich-Harris · Pull Request #13232 · sveltejs/kit
I forgot to account for CSP when adding inline styles for bundleStrategy: 'inline'. No test in this PR because there are no tests for bundleStrategy: 'inline' anyway, and life is to...
github.com
December 23, 2024 at 5:23 PM
Explore #SteamSummerSaleData with insights on game bundle pricing, showing a 25% average discount across 1K+ bundles through historical analysis.

www.actowizsolutions.com/steam-summer...

#SteamSummerSale #GameBundleInsights #PricingIntelligence #BundleStrategy #DataDrivenRetail #USA #UAE #UK
September 2, 2025 at 8:19 AM
Sveltekit can actually handle that. I just double checked, it's not a single file, but inline script (altho that is an option), but I got it working with this config and need to set the ssr to false on the +layout.

Config doc
svelte.dev/docs/kit/con...

Spa stuff
svelte.dev/docs/kit/sin...
October 29, 2025 at 4:56 PM
Boost your sales with product bundles — the secret to scaling your dropshipping business fast.
#DropshippingSecrets #BundleStrategy #SellTheTrend
May 6, 2025 at 1:04 PM
Yes! And I didn’t even have space for bundleStrategy: inline and hash-based routing in this version
November 23, 2025 at 5:13 PM