URL


ES 模块被解析并缓存为 URL。这意味着特殊字符必须是 percent-encoded,例如 # 必须是 %23? 必须是 %3F

¥ES modules are resolved and cached as URLs. This means that special characters must be percent-encoded, such as # with %23 and ? with %3F.

支持 file:node:data: URL 协议。除非使用 自定义 HTTPS 加载器,否则 Node.js 本身不支持像 'https://example.com/app.js' 这样的说明符。

¥file:, node:, and data: URL schemes are supported. A specifier like 'https://example.com/app.js' is not supported natively in Node.js unless using a custom HTTPS loader.