diff --git a/src/compiler/moduleSpecifiers.ts b/src/compiler/moduleSpecifiers.ts index d2332db89a182..8ebb6cf96554d 100644 --- a/src/compiler/moduleSpecifiers.ts +++ b/src/compiler/moduleSpecifiers.ts @@ -775,7 +775,9 @@ function tryGetModuleNameFromPaths(relativeToBaseUrl: string, paths: MapLike + +// @Filename: /package1/jsconfig.json +//// { +//// "compilerOptions": { +//// checkJs: true, +//// "paths": { +//// "package1/*": ["./*"], +//// "package2/*": ["../package2/*"] +//// }, +//// "baseUrl": "." +//// }, +//// "include": [ +//// ".", +//// "../package2" +//// ] +//// } + +// @Filename: /package1/file1.js +//// bar/**/ + +// @Filename: /package2/file1.js +//// export const bar = 0; + +verify.importFixModuleSpecifiers("", ["package2/file1"], { importModuleSpecifierPreference: "shortest" });