AppView in a box as a Vite plugin thing hatk.dev
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: add resolve.alias for $hatk in vite plugin config

The transform hook alone wasn't enough — Vitest resolves imports before
transform runs. Adding resolve.alias ensures $hatk resolves in all contexts.

Bumps to 0.0.1-alpha.26.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+7 -1
+1 -1
packages/hatk/package.json
··· 1 1 { 2 2 "name": "@hatk/hatk", 3 - "version": "0.0.1-alpha.25", 3 + "version": "0.0.1-alpha.26", 4 4 "license": "MIT", 5 5 "bin": { 6 6 "hatk": "dist/cli.js"
+6
packages/hatk/src/vite-plugin.ts
··· 84 84 85 85 config() { 86 86 return { 87 + resolve: { 88 + alias: { 89 + '$hatk/client': resolve('hatk.generated.client.ts'), 90 + '$hatk': resolve('hatk.generated.ts'), 91 + }, 92 + }, 87 93 environments: { 88 94 hatk: { 89 95 resolve: {