Nychthemeron/packages/playground/vite.config.ts
Matthew L McPeak 5dae44a4da
Some checks failed
ci / build (push) Failing after 30s
ci / publish (push) Has been skipped
ci / publish-docs (push) Has been skipped
Inital Commit
2026-07-15 20:10:24 -04:00

17 lines
639 B
TypeScript

import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [vue(), tailwindcss()],
resolve: {
alias: {
'~': fileURLToPath(new URL('./src', import.meta.url)),
// Matches packages/library's own alias -- needed because the "development"
// export condition on @nychthemeron/library resolves straight to that
// package's source (see its package.json), which itself imports via "@/...".
'@': fileURLToPath(new URL('../library/src', import.meta.url)),
},
},
})