You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
rakit/apps/imsfe/vite.config.ts

20 lines
435 B

import { join } from "node:path";
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: [
{
find: /^~(.+)/,
replacement: join(process.cwd(), 'node_modules/$1'),
},
{
find: /^src(.+)/,
replacement: join(process.cwd(), 'src/$1'),
},
]
},
})