diff --git a/packages/utils/src/defaultImportFn.ts b/packages/utils/src/defaultImportFn.ts index bd3a11ac85cbe..0ebc89b17449c 100644 --- a/packages/utils/src/defaultImportFn.ts +++ b/packages/utils/src/defaultImportFn.ts @@ -1,6 +1,6 @@ import { path as pathModule } from '@graphql-mesh/cross-helpers'; -export async function defaultImportFn(path: string): Promise { +async function defaultImportFn(path: string): Promise { let module = await import(/* @vite-ignore */ path) .catch(e => { if (e.code === 'ERR_REQUIRE_ESM') { @@ -30,3 +30,5 @@ export async function defaultImportFn(path: string): Promise { } return module; } + +export { defaultImportFn };