Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gilgardosh committed Dec 6, 2022
1 parent 41a0cec commit b6c4d43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/utils/src/defaultImportFn.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { path as pathModule } from '@graphql-mesh/cross-helpers';

export async function defaultImportFn(path: string): Promise<any> {
async function defaultImportFn(path: string): Promise<any> {
let module = await import(/* @vite-ignore */ path)
.catch(e => {
if (e.code === 'ERR_REQUIRE_ESM') {
Expand Down Expand Up @@ -30,3 +30,5 @@ export async function defaultImportFn(path: string): Promise<any> {
}
return module;
}

export { defaultImportFn };

0 comments on commit b6c4d43

Please sign in to comment.