22 lines
478 B
TypeScript
22 lines
478 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import legacy from '@vitejs/plugin-legacy';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
legacy({
|
|
// es.array.at: Voyager code iOS 15.2
|
|
// es.object.has-own: ReactMarkdown iOS 15.2
|
|
modernPolyfills: ['es.array.at', 'es.object.has-own'],
|
|
}),
|
|
],
|
|
server: {
|
|
port: 3000,
|
|
},
|
|
define: {
|
|
'process.env': process.env,
|
|
},
|
|
});
|