fix: avoid deprecation warning when using --force

pull/2044/head
Evan You 2 years ago
parent 22047f3363
commit 0c0b6cc5a3

@ -20,6 +20,11 @@ if (root) {
}
if (!command || command === 'dev') {
if (argv.force) {
delete argv.force
argv.optimizeDeps = { force: true }
}
const createDevServer = async () => {
const server = await createServer(root, argv, async () => {
await server.close()

Loading…
Cancel
Save