diff --git a/scripts/dev.js b/scripts/dev.js index efe9e758996..7db79442ee9 100644 --- a/scripts/dev.js +++ b/scripts/dev.js @@ -14,7 +14,7 @@ import { polyfillNode } from 'esbuild-plugin-polyfill-node' const require = createRequire(import.meta.url) const __dirname = dirname(fileURLToPath(import.meta.url)) const args = minimist(process.argv.slice(2)) -const targets = args._ || ['vue'] +const targets = args._.length ? args._ : ['vue'] const format = args.f || 'global' const prod = args.p || false const inlineDeps = args.i || args.inline