mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
29 lines
638 B
TypeScript
29 lines
638 B
TypeScript
import react from "@vitejs/plugin-react";
|
|
import reactNativeWeb from "vite-plugin-react-native-web";
|
|
import { cjsInterop } from "vite-plugin-cjs-interop";
|
|
import vike from "vike/plugin";
|
|
import type { UserConfig } from "vite";
|
|
import path from "node:path";
|
|
|
|
export default {
|
|
server: {
|
|
host: "0.0.0.0",
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"~": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
// build: {
|
|
// commonjsOptions: {
|
|
// transformMixedEsModules: true,
|
|
// },
|
|
// },
|
|
// optimizeDeps: {
|
|
// esbuildOptions: {
|
|
// mainFields: ["module", "main"],
|
|
// },
|
|
// },
|
|
plugins: [react(), vike(), reactNativeWeb()]
|
|
} satisfies UserConfig;
|