@@ -157,7 +157,7 @@ namespace ts.moduleSpecifiers {
157157 }
158158
159159 function getLocalModuleSpecifier ( moduleFileName : string , { getCanonicalFileName, sourceDirectory } : Info , compilerOptions : CompilerOptions , host : ModuleSpecifierResolutionHost , { ending, relativePreference } : Preferences ) : string {
160- const { baseUrl, paths, rootDirs, bundledPackageName } = compilerOptions ;
160+ const { baseUrl, paths, rootDirs } = compilerOptions ;
161161
162162 const relativePath = rootDirs && tryGetModuleNameFromRootDirs ( rootDirs , moduleFileName , sourceDirectory , getCanonicalFileName , ending , compilerOptions ) ||
163163 removeExtensionAndIndexPostFix ( ensurePathIsNonModuleName ( getRelativePathFromDirectory ( sourceDirectory , moduleFileName , getCanonicalFileName ) ) , ending , compilerOptions ) ;
@@ -171,9 +171,8 @@ namespace ts.moduleSpecifiers {
171171 return relativePath ;
172172 }
173173
174- const bundledPkgReference = bundledPackageName ? combinePaths ( bundledPackageName , relativeToBaseUrl ) : relativeToBaseUrl ;
175- const importRelativeToBaseUrl = removeExtensionAndIndexPostFix ( bundledPkgReference , ending , compilerOptions ) ;
176- const fromPaths = paths && tryGetModuleNameFromPaths ( removeFileExtension ( bundledPkgReference ) , importRelativeToBaseUrl , paths ) ;
174+ const importRelativeToBaseUrl = removeExtensionAndIndexPostFix ( relativeToBaseUrl , ending , compilerOptions ) ;
175+ const fromPaths = paths && tryGetModuleNameFromPaths ( removeFileExtension ( relativeToBaseUrl ) , importRelativeToBaseUrl , paths ) ;
177176 const nonRelative = fromPaths === undefined && baseUrl !== undefined ? importRelativeToBaseUrl : fromPaths ;
178177 if ( ! nonRelative ) {
179178 return relativePath ;
0 commit comments