add react compiler

This commit is contained in:
jeffvli
2026-04-05 18:38:06 -07:00
parent 1b2a6dfc1f
commit 56cd50e0ed
8 changed files with 38 additions and 21 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
import react from '@vitejs/plugin-react';
import path from 'path';
import { defineConfig, normalizePath } from 'vite';
import { ViteEjsPlugin } from 'vite-plugin-ejs';
import { VitePWA } from 'vite-plugin-pwa';
import { createReactPlugin } from './vite.react-plugin';
export default defineConfig({
base: './',
build: {
@@ -63,7 +64,7 @@ export default defineConfig({
],
},
plugins: [
react(),
createReactPlugin(),
ViteEjsPlugin({
root: normalizePath(path.resolve(__dirname, './src/renderer')),
web: true,