diff --git a/library/agent/hooks/wrapRequire.ts b/library/agent/hooks/wrapRequire.ts index 4a08a5830..e8cdcbf29 100644 --- a/library/agent/hooks/wrapRequire.ts +++ b/library/agent/hooks/wrapRequire.ts @@ -12,7 +12,7 @@ import { isMainJsFile } from "./isMainJsFile"; import { getInstance } from "../AgentSingleton"; import { executeInterceptors } from "./executeInterceptors"; -let originalRequire: typeof mod.prototype.require | undefined; +let originalRequire: typeof mod.prototype.require; let isRequireWrapped = false; let packages: Package[] = [];