Nychthemeron/packages/playground/vite.config.ts
Matthew L McPeak 38674be217
All checks were successful
ci / build (push) Successful in 35s
ci / publish (push) Successful in 11s
ci / publish-docs (push) Successful in 1m4s
Inital Commit
2026-07-15 20:47:53 -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)),
},
},
})