Skip to content

Commit

Permalink
Fix old node
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jan 6, 2022
1 parent 3788468 commit 54225c5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -20,5 +20,5 @@ export default async function getImportMetaResolve(): Promise<
// Since import.meta.resolve is unstable and only available when
// using the --experimental-import-meta-resolve flag, we almost
// always use the polyfill for now.
return (await resolveP).default || polyfill;
return (resolveP && (await resolveP).default) || polyfill;
}

0 comments on commit 54225c5

Please sign in to comment.