17 lines
548 B
TypeScript
17 lines
548 B
TypeScript
import { fileURLToPath } from 'node:url';
|
|
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
'@webdrop/core': fileURLToPath(new URL('../packages/core/src/index.ts', import.meta.url)),
|
|
},
|
|
},
|
|
build: { target: 'es2022', sourcemap: false },
|
|
server: { proxy: { '/api/v1': { target: 'http://127.0.0.1:5000', ws: true } } },
|
|
test: { environment: 'node' },
|
|
});
|