MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / isExternal

Function isExternal

packages/tooling/src/vite.plugin.emit-dts.ts:28–44  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

26 }
27
28 const isExternal = (input: string) => {
29 if (!externals) {
30 return false;
31 }
32 for (const e of externals) {
33 if (typeof e === 'string') {
34 if (input === e) {
35 return true;
36 }
37 } else if (e instanceof RegExp) {
38 if (e.test(input)) {
39 return true;
40 }
41 }
42 }
43 return false;
44 };
45
46 const mapPath = (filePath: string, input: string): string | undefined => {
47 for (const [k, v] of Object.entries(mapping!)) {

Callers 1

mapPathFunction · 0.85

Calls 1

testMethod · 0.65

Tested by

no test coverage detected