mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
16 lines
339 B
TypeScript
16 lines
339 B
TypeScript
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
ssr: {
|
|
format: 'cjs'
|
|
},
|
|
legacy: {
|
|
buildSsrCjsExternalHeuristics: true
|
|
},
|
|
optimizeDeps: {
|
|
// vitepress is aliased with replacement `join(DIST_CLIENT_PATH, '/index')`
|
|
// This needs to be excluded from optimization
|
|
exclude: ['vitepress']
|
|
}
|
|
})
|