ECMAScript 模块加载器入口点警告
🌐 ECMAScript modules loader entry point caveat
加载时,ES 模块加载器 会加载程序入口点,node 命令仅接受扩展名为 .js、.mjs 或 .cjs 的文件作为输入;当启用 --experimental-wasm-modules 时接受 .wasm 扩展名的文件;当传入 --experimental-default-type=module 时接受无扩展名的文件。
🌐 When loading, the ES module loader loads the program
entry point, the node command will accept as input only files with .js,
.mjs, or .cjs extensions; with .wasm extensions when
--experimental-wasm-modules is enabled; and with no extension when
--experimental-default-type=module is passed.