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

Function isExternal

packages/vite/src/node/build.ts:1215–1221  ·  view source on GitHub ↗
(id: string, test: string | RegExp)

Source from the content-addressed store, hash-verified

1213}
1214
1215function isExternal(id: string, test: string | RegExp) {
1216 if (typeof test === 'string') {
1217 return id === test
1218 } else {
1219 return test.test(id)
1220 }
1221}
1222
1223export class ChunkMetadataMap {
1224 private _inner = new Map<string, ChunkMetadata | AssetMetadata>()

Callers 3

shouldExternalizeFunction · 0.85
resolveUserExternalFunction · 0.85
external.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected