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

Function hasDataSourcemap

packages/babel-cli/src/babel/util.ts:73–76  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

71}
72
73export function hasDataSourcemap(code: string): boolean {
74 const pos = code.lastIndexOf("\n", code.length - 2);
75 return pos !== -1 && code.lastIndexOf("//# sourceMappingURL") < pos;
76}
77
78const REPL_CALLER = {
79 name: "@babel/cli",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected