Svelte

Handling breaking changes in SvelteKit pre-1.0

In the last month or so, there have been many breaking changes in SvelteKit. While this is expected pre-1.0, it poses a challenge to anyone running a SvelteKit app in production. In this post, I provide guidance on working through the recent breaking changes.

Using the @ and # symbols in tweets with a word joiner character

Twitter interprets strings starting with @ and # as mention and hashtag. It misinterprets Svelte-related strings, e.g., @const and #if. In this post, you will learn how to fix this.

Three ways to bootstrap a Svelte project

This post discusses three ways to bootstrap a Svelte project. Learn why using the official Vite Svelte templates results in the best developer experience.

Route matching in SvelteKit

This post explores how SvelteKit's filesystem-based router matches a requested route to a page or an endpoint in src/routes.

How to make SvelteKit HMR work with Gitpod

SvelteKit HMR breaks when developing with a Gitpod workspace in a browser. This post explains how to fix this.

How to wire up Fathom Analytics in a SvelteKit app

In this post, you will learn how to set up Fathom Analytics in a SvelteKit app to track pageviews and goals while ensuring privacy for your visitors.