mirror of
https://github.com/zoriya/vite-rnw-ssr-repro.git
synced 2025-12-06 07:06:10 +00:00
21 lines
460 B
JavaScript
21 lines
460 B
JavaScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import reactNative from "vite-plugin-react-native-web";
|
|
import { cjsInterop } from "vite-plugin-cjs-interop";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
reactNative(),
|
|
cjsInterop({
|
|
dependencies: ["inline-style-prefixer", "inline-style-prefixer/**"],
|
|
}),
|
|
],
|
|
ssr: {
|
|
optimizeDeps: {
|
|
include: ["react-native-web"],
|
|
},
|
|
},
|
|
});
|