diff --git a/packages/babel-cli/src/babel/file.ts b/packages/babel-cli/src/babel/file.ts index b039dcebef8f..7fbe2a44421a 100644 --- a/packages/babel-cli/src/babel/file.ts +++ b/packages/babel-cli/src/babel/file.ts @@ -1,6 +1,5 @@ import convertSourceMap from "convert-source-map"; import { AnyMap, encodedMap } from "@jridgewell/trace-mapping"; -import type { Section } from "@jridgewell/trace-mapping/dist/types/types"; import slash from "slash"; import path from "path"; import fs from "fs"; @@ -9,9 +8,16 @@ import * as util from "./util"; import type { CmdOptions } from "./options"; import * as watcher from "./watcher"; +import type { + SectionedSourceMap, + SectionedSourceMapInput, +} from "@jridgewell/trace-mapping"; + +type Section = SectionedSourceMap["sections"][0]; + type CompilationOutput = { code: string; - map: any; + map: SectionedSourceMapInput; }; export default async function ({