vite/playground/ssr-conditions/vite.config.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
375 B
JavaScript
Raw Permalink Normal View History

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'],
},
},
})