···22import { dirname, extname, join } from 'pathe'
33import type { DepsHandlingOptions } from './types'
44import { findNearestPackageData, isNodeBuiltin, slash } from './utils'
55-import { KNOWN_ASSET_TYPES } from './constants'
55+import { KNOWN_ASSET_RE } from './constants'
6677const BUILTIN_EXTENSIONS = new Set(['.mjs', '.cjs', '.node', '.wasm'])
88···1818 // special Vite query strings
1919 /[?&](init|raw|url|inline)\b/,
2020 // Vite returns a string for assets imports, even if it's inside "node_modules"
2121- new RegExp(`\\.(${KNOWN_ASSET_TYPES.join('|')})$`),
2121+ KNOWN_ASSET_RE,
2222]
23232424const depsExternal = [