fix(unplugin-typegpu): Return `undefined` from TypeGPU’s Bun `onLoad` when no transform is needed
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 66/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- bun, typescript
- 领域
- build-system, tooling
调研方向
从 unplugin-typegpu 包开始,找到 Bun 插件的 onLoad 钩子;该钩子目前在没有应用任何转换时返回原始源码。阅读周围的 loader 代码和现有的 bun 测试,看看返回值是如何被使用的,然后在无转换路径上返回 undefined,以便后续的 onLoad 钩子仍会运行。请使用 Bun 1.4.6-canary.1 或更新版本进行验证,因为较旧的 Bun 在遇到 undefined 时会报错;完成意味着插件的测试通过,并且非 TypeGPU 文件会继续传递给其他 loader。
由索引模型根据 Issue 内容生成。
描述
Returning original file content prevents later onLoad hooks from running.
Return undefined to let Bun continue.
Returning undefined previously caused an error, but it works in Bun 1.4.6-canary.1.
We should update unplugin-typegpu after Bun's release.
- 主要语言
- TypeScript
- 星标
- 3.4k
- 派生
- 151
- 平均合并
- 3 天 8 小时
- 30 天内合并 PR
- 55
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
software-mansion/TypeGPU 的其他 Issue
-
fix(unplugin-typegpu): `getLang()` misidentifies file extensions when a query contains a dot可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
software-mansion/TypeGPU#3433 · 1 条评论 ·
维护者通常 1 天内回复
-
chore(unplugin-typegpu): Inconsistent warning prefixes across entry points可能已有人在做 @dchaudhari7177 于 9 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 66/100
software-mansion/TypeGPU#3418 · 1 条评论 ·
维护者通常 1 天内回复
-
bug: f16 writes always fail in the compiled writer on engines without DataView.setFloat16 (React Native / Hermes)可能已有人在做 @dchaudhari7177 于 8 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
software-mansion/TypeGPU#3405 · 1 条评论 ·
维护者通常 1 天内回复
-
docs: Remove popups from examples可能已有人在做 @aleksanderkatan 于 9 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
software-mansion/TypeGPU#3327 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
software-mansion/TypeGPU#3320 · 1 条评论 ·
维护者通常 1 天内回复
查看 software-mansion/TypeGPU 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
ehmpathy/rhachet-roles-bhrain#878 ·
维护者通常 1 天内回复
-
Chat UI: Message actions dropdown is cut off beneath composer when message is near bottom of chat可能已有人在做 @koeria 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
milind-soni/OpenMausBot#8023 ·
维护者通常 1 天内回复
-
Windows microphone listing treats words in a device name as DirectShow labels可能已有人在做 @Sujal-chaudhary 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 88/100
clipy-recorder/clipy#447 · 2 条评论 ·
维护者通常 1 天内回复
-
enhancement from-app needs-triage
难度 2/5 1-3 小时 新手友好度 68/100
nightly-labs/openbot#19162 ·
维护者通常 1 天内回复
-
triage:in-progress
难度 2/5 1-3 小时 新手友好度 76/100
Cotal-AI/Cotal#11229 · 1 条评论 ·
维护者通常 1 天内回复