mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
23 lines
434 B
TypeScript
23 lines
434 B
TypeScript
import legacy from '@vitejs/plugin-legacy'
|
|
import react from '@vitejs/plugin-react'
|
|
import { defineConfig } from 'vite'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
legacy()
|
|
],
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: './src/setupTests.ts',
|
|
},
|
|
server: {
|
|
port: 3000
|
|
},
|
|
optimizeDeps: {
|
|
exclude: ['@ionic/react', '@ionic/react-router']
|
|
}
|
|
})
|