mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
19 lines
431 B
JavaScript
19 lines
431 B
JavaScript
// eslint-disable-next-line import/no-nodejs-modules
|
|
import { URL } from 'url'
|
|
import { defineConfig } from 'vite'
|
|
|
|
// make sure bundling works even if `url` refers to the locally installed
|
|
// `url` package instead of the built-in `url` nodejs module
|
|
globalThis.__test_url = URL
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
host: 'localhost',
|
|
},
|
|
build: {
|
|
//speed up build
|
|
minify: false,
|
|
target: 'esnext',
|
|
},
|
|
})
|