b7f52be4c9
CI / Run CI (push) Has been cancelled
CI / check-backend (push) Has been cancelled
CI / check-frontend (push) Has been cancelled
CI / tests (push) Has been cancelled
CI / e2e-tests (push) Has been cancelled
Copilot Setup Steps / copilot-setup-steps (push) Has been cancelled
25 lines
887 B
TypeScript
25 lines
887 B
TypeScript
import react from '@vitejs/plugin-react-swc';
|
|
import path from 'path';
|
|
import { defineConfig } from 'vite';
|
|
import svgr from 'vite-plugin-svgr';
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
build: {
|
|
sourcemap: true
|
|
},
|
|
plugins: [react(), tsconfigPaths(), svgr()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
// To prevent conflicts with packages in @chainlit/react-client, we need to specify the resolution paths for these dependencies.
|
|
react: path.resolve(__dirname, './node_modules/react'),
|
|
'usehooks-ts': path.resolve(__dirname, './node_modules/usehooks-ts'),
|
|
sonner: path.resolve(__dirname, './node_modules/sonner'),
|
|
lodash: path.resolve(__dirname, './node_modules/lodash'),
|
|
recoil: path.resolve(__dirname, './node_modules/recoil')
|
|
}
|
|
}
|
|
});
|