lume/vite.config.ts

14 lines
338 B
TypeScript
Raw Normal View History

2023-04-22 01:53:18 +00:00
import react from '@vitejs/plugin-react-swc';
import { defineConfig } from 'vite';
import ssr from 'vite-plugin-ssr/plugin';
import viteTsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
2023-04-22 10:56:09 +00:00
plugins: [react(), ssr({ prerender: true }), viteTsconfigPaths()],
2023-04-23 01:25:27 +00:00
define: {
global: {
window: {},
},
},
2023-04-22 01:53:18 +00:00
});