没有 __filename 或 __dirname
【No __filename or __dirname】
这些 CommonJS 变量在 ES 模块中不可用。
【These CommonJS variables are not available in ES modules.】
__filename 和 __dirname 的使用场景可以通过 import.meta.url 进行复制。
【No __filename or __dirname】
这些 CommonJS 变量在 ES 模块中不可用。
【These CommonJS variables are not available in ES modules.】
__filename 和 __dirname 的使用场景可以通过 import.meta.url 进行复制。