fix: revert preact switch from 46c52c3ef1

This commit is contained in:
David Ralph
2023-03-21 19:59:16 +00:00
parent f6f057d354
commit 83aa6ff341
90 changed files with 324 additions and 273 deletions

View File

@@ -1,5 +1,5 @@
import { defineConfig } from 'vite';
import preact from '@preact/preset-vite';
import react from '@vitejs/plugin-react-swc';
import path from 'path';
import fs from 'fs';
import ADMZip from 'adm-zip';
@@ -61,7 +61,7 @@ const prepareBuilds = () => ({
});
export default defineConfig({
plugins: [preact(), prepareBuilds(), progress()],
plugins: [react(), prepareBuilds(), progress()],
server: {
open: true,
hmr: {
@@ -86,10 +86,6 @@ export default defineConfig({
},
},
},
alias: {
react: 'preact/compat',
'react-dom': 'preact/compat',
},
resolve: {
extensions: ['.js', '.jsx'],
alias: {