mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 14:48:41 +00:00
13 lines
375 B
JavaScript
13 lines
375 B
JavaScript
import { defaultServerConditions, defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
ssr: {
|
|
external: ['@vitejs/test-ssr-conditions-external'],
|
|
noExternal: ['@vitejs/test-ssr-conditions-no-external'],
|
|
resolve: {
|
|
conditions: [...defaultServerConditions, 'react-server'],
|
|
externalConditions: ['node', 'workerd', 'react-server'],
|
|
},
|
|
},
|
|
})
|