wip: multi-type composer

This commit is contained in:
2023-10-21 15:58:39 +07:00
parent de88ca51fe
commit cade8c8b4c
16 changed files with 234 additions and 36 deletions

View File

@@ -1,10 +1,10 @@
import react from '@vitejs/plugin-react-swc';
import million from 'million/compiler';
//import million from 'million/compiler';
import { defineConfig } from 'vite';
import viteTsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
plugins: [million.vite({ auto: true, mute: true }), react(), viteTsconfigPaths()],
plugins: [/*million.vite({ auto: true, mute: true }),*/ react(), viteTsconfigPaths()],
envPrefix: ['VITE_', 'TAURI_'],
build: {
target: process.env.TAURI_PLATFORM === 'windows' ? 'chrome105' : 'safari13',