diff --git a/src/node-modules/require-module.ts b/src/node-modules/require-module.ts index 2a0028d..6958b1a 100644 --- a/src/node-modules/require-module.ts +++ b/src/node-modules/require-module.ts @@ -6,6 +6,7 @@ import { createRequire } from 'module'; * @category Files */ export default function requireModule(filePath: string) { + // @ts-ignore const requireFunc = createRequire(import.meta.url); return requireFunc(filePath); }