Skip to content

Commit db09598

Browse files
authored
fix(instrumentation): add .js to module path (#1711)
Co-authored-by: vitramir <vitalis@icedigital.ru>
1 parent c348d4f commit db09598

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/instrumentation/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function Instrumentation (agent) {
7979
// Lazy require so that we don't have to use `require.resolve` which
8080
// would fail in combination with Webpack. For more info see:
8181
// https://github.com/elastic/apm-agent-nodejs/pull/957
82-
return require(`./modules/${pathName}`)(...args)
82+
return require(`./modules/${pathName}.js`)(...args)
8383
})
8484
}
8585
}

0 commit comments

Comments
 (0)