svelte-webpack

Svelte Webpack

svelte-webpack5-typescript

Test of Webpack 5 as a bundler for Svelte :snowflake:

Code for my blog post Why Webpack 5 is the best bundler for Svelte.

My Requirements

  • 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)

How to run

Clone the repo and run pnpm i && pnpm start.

To build do a pnpm build and to analyze bundle pnpm build:analyze.

There is more!

For more interesting stuff like this follow me on Twitter or check out my blog https://codechips.me.

Top categories

Loading Svelte Themes