Test of Webpack 5 as a bundler for Svelte ❄️
Code for my blog post Why Webpack 5 is the best bundler for Svelte.
- It must be fast
- It must support Typescript
- It must support PostCSS
- It must produce small and efficient bundles
- It must produce correct sourcemaps for debugging
- It should support HMR (Hot Module Replacement)
Clone the repo and run pnpm i && pnpm start
.
To build do a pnpm build
and to analyze bundle pnpm build:analyze
.
For more interesting stuff like this follow me on Twitter or check out my blog https://codechips.me.