MCPcopy Create free account
hub / github.com/babel/babel / readdirForCompilable

Function readdirForCompilable

packages/babel-cli/src/babel/util.ts:47–55  ·  view source on GitHub ↗
(
  dirname: string,
  includeDotfiles: boolean,
  altExts?: string[],
)

Source from the content-addressed store, hash-verified

45}
46
47export function readdirForCompilable(
48 dirname: string,
49 includeDotfiles: boolean,
50 altExts?: string[],
51): string[] {
52 return readdir(dirname, includeDotfiles, function (filename) {
53 return isCompilableExtension(filename, altExts);
54 });
55}
56
57/**
58 * Test if a filename ends with a compilable extension.

Callers

nothing calls this directly

Calls 2

readdirFunction · 0.85
isCompilableExtensionFunction · 0.85

Tested by

no test coverage detected