--experimental-loader=module
版本历史
| 版本 | 变更 |
|---|---|
| v22.13.1 | 在启用权限模型的情况下使用此功能需要传递 |
| v12.11.1 | 此标志已从 |
| v8.8.0 | 新增于: v8.8.0 |
不鼓励使用此标志,并且可能会在 Node.js 的未来版本中将其删除。请改用
--import与register()。\This flag is discouraged and may be removed in a future version of Node.js. Please use
--importwithregister()instead.
指定包含导出的 模块定制钩子 的 module。module 可以是接受为 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.