vite/playground/cli-module/vite.config.js
renovate[bot] 6c10662281
chore(deps): update dependency eslint to v9 (#16661)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-06-18 09:04:59 +02:00

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