#!/usr/bin/env node const { performance } = require('perf_hooks') global.__vite_start_time = performance.now() const debugIndex = process.argv.findIndex((arg) => /^(?:-d|--debug)$/.test(arg)) const filterIndex = process.argv.findIndex((arg) => /^(?:-f|--filter)$/.test(arg) ) if (debugIndex > 0) { let value = process.argv[debugIndex + 1] if (!value || value.startsWith('-')) { value = 'vite:*,uni:*' } process.env.DEBUG = value if (filterIndex > 0) { const filter = process.argv[filterIndex + 1] if (filter && !filter.startsWith('-')) { process.env.VITE_DEBUG_FILTER = filter } } } require('../dist/cli/index.js')