Skip to content

Commit

Permalink
remove then condtion at async import.meta.resolve call
Browse files Browse the repository at this point in the history
  • Loading branch information
bumblehead committed Sep 6, 2023
1 parent 6b14a85 commit 3d00bbc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/esmockModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const assertImportMetaResolveReturn = (url, id, parent) => {
const resolve = isMetaResolve ?
(import.meta.resolve.constructor.name === 'AsyncFunction'
? async (id, p) => import.meta.resolve(id, asFileURL(p))
.then(url => assertImportMetaResolveReturn(url, id, p))
.catch(() => resolvewith(id, p))
: (id, p) => {
try {
Expand Down

0 comments on commit 3d00bbc

Please sign in to comment.