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.