URL


ES 模块被解析并缓存为 URL。 这意味着特殊字符必须是百分比编码的,比如使用 %23#、使用 %3F?

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

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:, 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.