--experimental-specifier-resolution=mode
设置解析 ES 模块说明符的解析算法。
有效选项为 explicit
和 node
。
默认为 explicit
,需要提供模块的完整路径。
Sets the resolution algorithm for resolving ES module specifiers. Valid options
are explicit
and node
.
The default is explicit
, which requires providing the full path to a
module. The node
mode will enable support for optional file extensions and
the ability to import a directory that has an index file.
Please see customizing ESM specifier resolution for example usage.