building-use-map/vite.config.ts
HangerThem 4f9c11039b refactor: split into TypeScript modules built with Vite
- Move the single-file app into src/ as typed ES modules
- Vite for dev server and minified production build (bun run dev / build)
- oxfmt/oxlint config; rename useName -> ruianUseName (hooks lint false positive)
- Fix horizontal overflow in the sidebar (range input default margin)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 11:32:26 +01:00

11 lines
219 B
TypeScript

import { defineConfig } from 'vite'
export default defineConfig({
root: 'src',
// relative asset URLs so dist/ works from any sub-path
base: './',
build: {
outDir: '../dist',
emptyOutDir: true,
},
})