--experimental-loader=module


不建议使用此标志,可能会在 Node.js 的未来版本中被移除。 请改用 --importregister()

指定包含导出 模块自定义钩子modulemodule 可以是任何被 import 说明符 接受的字符串。

【Specify the module containing exported module customization hooks. module may be any string accepted as an import specifier.】

如果与 权限模型 一起使用此功能,则需要 --allow-worker

【This feature requires --allow-worker if used with the Permission Model.】