Skip to content

Commit 10b08bf

Browse files
committed
fixup! module: add support for node:‑prefixed require(…) calls
1 parent d196d45 commit 10b08bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/modules/cjs/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function loadNativeModule(filename, request, skipCompile = false) {
3636
const mod = NativeModule.map.get(filename);
3737
if (mod) {
3838
debug('load native module %s', request);
39-
if (skipCompile) {
39+
if (!skipCompile) {
4040
// compileForPublicLoader() throws if mod.canBeRequiredByUsers is false:
4141
mod.compileForPublicLoader();
4242
}

0 commit comments

Comments
 (0)