自定义 ESM 说明符解析算法
¥Customizing ESM specifier resolution algorithm
模块定制钩子 提供了一种用于自定义 ESM 说明符解析算法的机制。为 ESM 说明符提供 CommonJS 样式解析的一个示例是 commonjs-extension-resolution-loader。
¥Module customization hooks provide a mechanism for customizing the ESM specifier resolution algorithm. An example that provides CommonJS-style resolution for ESM specifiers is commonjs-extension-resolution-loader.