Skip to content

Commit 1a05bfe

Browse files
renamed param for formatPathToFile
1 parent b8cb206 commit 1a05bfe

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/transpilation/resolve.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)