mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
22 lines
472 B
JavaScript
22 lines
472 B
JavaScript
import { resolve } from 'node:path'
|
|
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
outDir: './dist',
|
|
manifest: true,
|
|
rolldownOptions: {
|
|
input: {
|
|
main: resolve(import.meta.dirname, './index.html'),
|
|
other: resolve(import.meta.dirname, './other.js'),
|
|
},
|
|
treeshake: false,
|
|
output: {
|
|
format: 'cjs',
|
|
// freeze: false,
|
|
externalLiveBindings: false,
|
|
},
|
|
},
|
|
},
|
|
})
|