Skip to content

Commit

Permalink
fix: prefer local imports in meta url
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardocavazza committed May 2, 2022
1 parent e091392 commit d1a4a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/esbuild-plugin-meta-url/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default function({ emit = true } = {}) {
if (requestName.startsWith('./') || requestName.startsWith('../')) {
candidates.push(requestName);
} else {
candidates.push(requestName, `./${requestName}`);
candidates.push(`./${requestName}`, requestName);
}

while (candidates.length) {
Expand Down

0 comments on commit d1a4a9e

Please sign in to comment.