Skip to content

Commit 918e936

Browse files
committed
warn on using ESM loader
1 parent 1942cc8 commit 918e936

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lib/internal/bootstrap_node.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,13 @@
109109
'DeprecationWarning', 'DEP0062', startup, true);
110110
}
111111

112+
if (!!process.binding('config').experimentalModules) {
113+
process.emitWarning(
114+
'The ESM module loader is experimental.',
115+
'ExperimentalWarning', undefined);
116+
}
117+
118+
112119
// There are various modes that Node can run in. The most common two
113120
// are running from a script and running the REPL - but there are a few
114121
// others like the debugger or running --eval arguments. Here we decide

0 commit comments

Comments
 (0)