Skip to content

Commit

Permalink
fix: avoid deprecation warning when using --force
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Mar 7, 2023
1 parent 22047f3 commit 0c0b6cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/node/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0c0b6cc

Please sign in to comment.