mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
28 lines
555 B
TypeScript
28 lines
555 B
TypeScript
import react from "@vitejs/plugin-react";
|
|
import reactNativeWeb from "vite-plugin-react-native-web";
|
|
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;
|