mirror of
https://github.com/lucasrcsantana/story-generator.git
synced 2025-12-16 21:37:51 +00:00
30 lines
648 B
TypeScript
30 lines
648 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import path from 'path';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
optimizeDeps: {
|
|
include: ['@supabase/supabase-js', 'resend']
|
|
},
|
|
build: {
|
|
commonjsOptions: {
|
|
include: [/node_modules/],
|
|
transformMixedEsModules: true
|
|
},
|
|
rollupOptions: {
|
|
input: {
|
|
main: path.resolve(__dirname, 'index.html')
|
|
}
|
|
}
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'node-fetch': 'isomorphic-fetch',
|
|
'@': path.resolve(__dirname, './src')
|
|
},
|
|
extensions: ['.js', '.jsx', '.ts', '.tsx']
|
|
}
|
|
});
|