require


CommonJS 模块 require 当前仅支持加载同步的 ES 模块(也就是说,不使用顶层 await 的 ES 模块)。

🌐 The CommonJS module require currently only supports loading synchronous ES modules (that is, ES modules that do not use top-level await).

详情请参见 使用 require() 加载 ECMAScript 模块

🌐 See Loading ECMAScript modules using require() for details.