-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
22 lines (21 loc) · 1023 Bytes
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from "path";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
optimizeDeps: {
include: ['@einarlyn/custom-form-editor']
}
// resolve: {
// alias: {
// 'preact/hooks': path.resolve(__dirname, 'node_modules/preact/hooks/dist/hooks.module.js'),
// 'preact/jsx-runtime': path.resolve(__dirname, 'node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js'),
// 'preact/compat': path.resolve(__dirname, 'node_modules/preact/compat/dist/compat.module.js'),
// 'preact': path.resolve(__dirname, 'node_modules/preact/dist/preact.module.js'),
// '../preact/hooks': path.resolve(__dirname, 'node_modules/preact/hooks/dist/hooks.module.js'),
// '../preact/jsx-runtime': path.resolve(__dirname, 'node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js'),
// '../preact': path.resolve(__dirname, 'node_modules/preact/dist/preact.module.js')
// },
// },
})