MCPcopy
hub / github.com/vitejs/vite / canExternalizeFile

Function canExternalizeFile

packages/vite/src/node/external.ts:149–153  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

147}
148
149export function canExternalizeFile(filePath: string): boolean {
150 const ext = path.extname(filePath)
151 // only external js imports
152 return !ext || ext === '.js' || ext === '.mjs' || ext === '.cjs'
153}

Callers 2

processResultFunction · 0.90
isExternalizableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected