19 lines
427 B
TypeScript
19 lines
427 B
TypeScript
import { fileURLToPath } from 'node:url';
|
|
import { dirname, resolve } from 'node:path';
|
|
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vite';
|
|
|
|
const here = dirname(fileURLToPath(import.meta.url));
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@pikebacker/shared': resolve(here, '../../packages/shared/src/index.ts')
|
|
}
|
|
},
|
|
server: {
|
|
port: 5173
|
|
}
|
|
});
|