2025-03-12 22:54:42 +00:00

19 lines
517 B
JavaScript

import preact from "@preact/preset-vite"
import { defineConfig } from "vite"
import { resolve } from 'path'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [preact()],
resolve: {
alias: {
'react': 'preact/compat',
'react-dom/test-utils': 'preact/test-utils',
'react-dom': 'preact/compat',
'react/jsx-runtime': 'preact/jsx-runtime',
'@store': resolve(__dirname, 'src/modules/store.js'),
'@components': resolve(__dirname, 'src/components')
}
}
})