UNPKG

@quasar/app-vite

Version:

Quasar Framework App CLI with Vite

13 lines (10 loc) 288 B
import { existsSync } from 'node:fs' const extensions = [ '', '.js', '.ts', '.jsx', '.tsx' ] export function resolveExtension (file, extList = extensions) { for (const ext of extList) { const entry = file + ext if (existsSync(entry) === true) { return entry } } }