mirror of
https://github.com/2234839/web-font.git
synced 2026-06-27 09:18:15 +08:00
createRequire(import.meta.url) 经 tsdown 打包为 CJS 后引入 __filename, 而 LLRT 运行时不提供 __filename,导致 ReferenceError: __filename is not defined。 改用 tsdown define 构建期把 PACKAGE_VERSION 替换为字面量字符串, 运行时无文件读取、无 __filename 依赖。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>