kickjs-bootstrap-export
Use when HMR is silently doing full restarts on every save, or createTestApp can't find the app handle.
소스 정보
- 저장소
- forinda/kickjs-examples-archive
- 최근 소스 활동
- 2026년 10월 16일 00:14
- 감지된 SKILL.md 언어
- 영어
- 스타
- 0
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SKILL.md 표시 중
SKILL.md
소스 지침 · 읽기 전용 미리보기- name
- kickjs-bootstrap-export
- description
- Use when HMR is silently doing full restarts on every save, or createTestApp can't find the app handle.
<!-- Generated by `kick g agents` for settings-api. Edits are overwritten on the next refresh; keep customisation in a SKILL.local.md alongside. -->
**Check** `src/index.ts`'s last line:
```ts
// CORRECT — Vite plugin + createTestApp import the named `app` symbol
export const app = await bootstrap({ ... })
// WRONG — HMR degrades to full restart, createTestApp loses the handle
await bootstrap({ ... })
```
The Vite plugin imports the named `app` symbol via `virtual:kickjs/app`; testing helpers do too. Without the export, both fall back to slower paths (full restart on save, mock handle in tests) **without warning**.
**Red flags**:
- A bare `await bootstrap(...)` with no `export` — fix by adding `export const app =`.
- Re-assigning `app` later in the file (`app = somethingElse`) — Vite imports by reference at module-load time; reassignments don't propagate.
- Multiple files calling `bootstrap()` — only the entry should. Tests use `createTestApp` instead.
GitHub에서 보기