Skip to content

Commit

Permalink
Re-use existing function
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Aug 25, 2023
1 parent 0cb5b5a commit e0ddd7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function normalizeFilePath(filePath) {
function normalizeImportSourceToFilePath(filePath, source) {
let { dir } = path.parse(filePath);
let normalized = path.join(dir, source);
return TemplatePath.standardizeFilePath(path.relative(".", normalized));
return normalizeFilePath(normalized);
}

async function findByContents(contents, filePath, alreadyParsedSet) {
Expand Down

0 comments on commit e0ddd7c

Please sign in to comment.