--experimental-loader=module
版本历史
| 版本 | 变更 |
|---|---|
| v23.6.1, v22.13.1, v20.18.2 | Using this feature with the permission model enabled requires passing |
| v12.11.1 | This flag was renamed from |
| v8.8.0 | 新增于: v8.8.0 |
不鼓励使用此标志,并且可能在未来的 Node.js 版本中被移除。 请使用
--import与register()替代。
指定包含已导出 异步模块自定义钩子 的 module。
module 可以是任何被 import 指示符 接受的字符串。
🌐 Specify the module containing exported asynchronous 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.