Skip to content

Commit

Permalink
core: resolver: adds support for null extension
Browse files Browse the repository at this point in the history
  • Loading branch information
dresende committed Jul 31, 2024
1 parent 15c36fe commit 7d905dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function Resolver(extension) {
return path;
}

if (!path.endsWith(`.${extension}`)) {
if (extension !== null && !path.endsWith(`.${extension}`)) {
path += `.${extension}`;
}

Expand Down

0 comments on commit 7d905dd

Please sign in to comment.