Skip to content

Commit

Permalink
fix: test error
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiden-FE committed Mar 14, 2024
1 parent 794cce2 commit b26e578
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/node-modules/require-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit b26e578

Please sign in to comment.