Chun Nam Wong's Avatar

Chun Nam Wong

@chunnamwong.com

Software Engineer based in Tokyo, Japan Svelte | React | TypeScript | Swift | Neovim chunnamwong.com

13
Followers
22
Following
6
Posts
04.07.2025
Joined
Posts Following

Latest posts by Chun Nam Wong @chunnamwong.com

Video thumbnail

Stress testing a WIP ts-svg feature: "only process used icons." I've got 5995 icons and don't want the dev server to pull everything into the browser, or builds to transform unused SVGs before tree-shaking.
Latest progress: dev stays fast, build is ~2s with 8/5995 icons used

15.02.2026 02:53 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

But yeah, admittedly it adds side effects to the test case, so it needs some caution. For now Iโ€™ve disabled parallel runs and made sure it cleans up before the next run.

11.02.2026 23:48 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

Just wrote tests for svg-ts. It was my first time setting up visual regression manually. One โ€œwildโ€ test even does `fs.writeFile` during the run to observe HMR. If I comment out my HMR handling logic, it hot reloads into a 500 error page and the snapshots fail. It's satisfying.

11.02.2026 23:41 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

@ts-svg/svelte v0.0.1 is out ๐ŸŽ‰

Type-safe SVG bundling #Vite Plugin โ€” scans a folder and generates typed virtual modules, so you can import SVGs as #Svelte components with autocomplete:

import * as Icon from 'virtual:ts-svg/icons' โ†’ type <Icon. โœ…

github.com/chunnamwong/...

08.02.2026 22:01 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Video thumbnail

Testing the reworked version of my SVG #Vite plugin with #SvelteKit. It focuses on simpler setup and better DX. Now, whenever I add a new icon to the folder, I just type `<Icon.` and boom, the ready-to-use component shows up in autocomplete.

07.02.2026 03:30 ๐Ÿ‘ 5 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 1
Preview
Isolated parallel E2E tests for SvelteKit apps with Remote Functions

I published an article (with source code) introducing my parallel, isolated Playwright test setup using Testcontainers, demonstrated on a SvelteKit app with Remote Functions. chunnamwong.com/blog/sveltek...

08.01.2026 12:07 ๐Ÿ‘ 5 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0