mirror of
https://github.com/Qortal/q-mail.git
synced 2026-04-27 14:39:21 +00:00
23 lines
475 B
TypeScript
23 lines
475 B
TypeScript
import path from 'path'
|
|
import { fileURLToPath } from 'url'
|
|
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@qortal/qapp-lib': path.resolve(__dirname, 'src/qapp-lib'),
|
|
},
|
|
},
|
|
base: "",
|
|
build: {
|
|
commonjsOptions: {
|
|
esmExternals: true
|
|
},
|
|
},
|
|
})
|