mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 14:48:41 +00:00
6c10662281
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
19 lines
433 B
JavaScript
19 lines
433 B
JavaScript
// eslint-disable-next-line import-x/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',
|
|
},
|
|
})
|