Skip to content

Commit

Permalink
update test-loader forwarding for resolve hook
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Feb 7, 2023
1 parent 5e19556 commit 1e02188
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/test-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ export async function load(url, context, defaultLoad) {
}

export function resolve(specifier, context, defaultResolve) {
const ext = path.extname(specifier);

if (ext === '') {
if (specifier.startsWith('file:')) {
return experimentalResolve(specifier, context, defaultResolve);
} else {
return defaultResolve(specifier, context, defaultResolve);
Expand Down

0 comments on commit 1e02188

Please sign in to comment.