Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
👀 PR includes
🐛 Bugfix
🔧 Chore
📝 Description
浏览器 UMD 通过
asyncGetAllData异步导出明细表时,如果空闲回调的时间预算已耗尽且未超时,会访问未定义的process,使导出 Promise 保持未完成。使用 2.7.2 发布包和当前next的原生构建均复现了 #3355 中相同的63:107001堆栈。Rollup 现有环境替换只识别点号访问。补齐单双引号的方括号访问,并调整匹配边界以支持结尾的
],避免误匹配其它标识符或对象成员。环境替换放到 TypeScript 插件之后,防止类型检查把测试环境判断变为不相交的字面量类型比较。项目启用了noPropertyAccessFromIndexSignature,保留源码中的方括号访问符合现有类型规则。增加直接执行实际 Rollup 配置的构建回归,并接入已有 lint CI。
验证:
TableSheet.render()+asyncGetAllData:预算耗尽后恢复、预算充足、超时三种场景均完整导出相同数据。pnpm lint、修改文件 Prettier 与git diff --check通过。Windows 下使用进程级 Git Bash 执行原有 shell 脚本。尚未运行全仓构建、完整 Electron 单测或远端 CI。
🖼️ Screenshot
不涉及可见布局变化。浏览器验证结果:
process is not defined,Promise 未完成🔗 Related issue link
Fixes #3355
🔍 Self-Check before the merge