@@ -163,7 +163,7 @@ namespace ts.moduleSpecifiers {
163163 }
164164
165165 function getLocalModuleSpecifier ( moduleFileName : string , info : Info , compilerOptions : CompilerOptions , host : ModuleSpecifierResolutionHost , { ending, relativePreference } : Preferences ) : string {
166- const { baseUrl, paths, rootDirs, bundledPackageName } = compilerOptions ;
166+ const { baseUrl, paths, rootDirs } = compilerOptions ;
167167 const { sourceDirectory, getCanonicalFileName } = info ;
168168
169169 const relativePath = rootDirs && tryGetModuleNameFromRootDirs ( rootDirs , moduleFileName , sourceDirectory , getCanonicalFileName , ending , compilerOptions ) ||
@@ -178,9 +178,8 @@ namespace ts.moduleSpecifiers {
178178 return relativePath ;
179179 }
180180
181- const bundledPkgReference = bundledPackageName ? combinePaths ( bundledPackageName , relativeToBaseUrl ) : relativeToBaseUrl ;
182- const importRelativeToBaseUrl = removeExtensionAndIndexPostFix ( bundledPkgReference , ending , compilerOptions ) ;
183- const fromPaths = paths && tryGetModuleNameFromPaths ( removeFileExtension ( bundledPkgReference ) , importRelativeToBaseUrl , paths ) ;
181+ const importRelativeToBaseUrl = removeExtensionAndIndexPostFix ( relativeToBaseUrl , ending , compilerOptions ) ;
182+ const fromPaths = paths && tryGetModuleNameFromPaths ( removeFileExtension ( relativeToBaseUrl ) , importRelativeToBaseUrl , paths ) ;
184183 const nonRelative = fromPaths === undefined && baseUrl !== undefined ? importRelativeToBaseUrl : fromPaths ;
185184 if ( ! nonRelative ) {
186185 return relativePath ;
0 commit comments