File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,16 +144,16 @@ class ResolutionContext {
144144
145145 public processedDependencies = new Set < string > ( ) ;
146146
147- private formatPathToFile ( pluginResolvedPath : string , required : ProcessedFile ) {
148- const isRelative = [ "/" , "./" , "../" ] . some ( p => pluginResolvedPath . startsWith ( p ) ) ;
147+ private formatPathToFile ( targetPath : string , required : ProcessedFile ) {
148+ const isRelative = [ "/" , "./" , "../" ] . some ( p => targetPath . startsWith ( p ) ) ;
149149
150150 // // If the import is relative, always resolve it relative to the requiring file
151151 // // If the import is not relative, resolve it relative to options.baseUrl if it is set
152152 const fileDirectory = path . dirname ( required . fileName ) ;
153153 const relativeTo = isRelative ? fileDirectory : this . options . baseUrl ?? fileDirectory ;
154154
155155 // // Check if file is a file in the project
156- const resolvedPath = path . join ( relativeTo , pluginResolvedPath ) ;
156+ const resolvedPath = path . join ( relativeTo , targetPath ) ;
157157 return resolvedPath ;
158158 }
159159
You can’t perform that action at this time.
0 commit comments