re-bundle module if there is no minified.js on gist
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- frontend
调研方向
打开报告中的 gist URL 并检查浏览器控制台,然后跟踪 gist 加载路径和 Run 路径,确认它决定使用 minified.js 还是 browserify-cdn。手动创建的、不包含 minified.js 的 gist 能够成功运行,并且现有优化对使用 requirebin 保存的 gists 仍然有效时,修复就完成了。
由索引模型根据 Issue 内容生成。
描述
There is an optimization where;
- If you load a gist into requirebin via the
?gist=URL on page load - requirebin md5 hashes the
index.jsof the gist when you load it - when you hit Run, if you have not edited
index.js(e.g. the hash of the code in the editor matches the hash of the code at load time) then the optimization is to just loadminified.jsfrom the gist directly, otherwise if the hashes don't match then requirebin does a full rebuild from browserify-cdn
the optimization works great except for the case where there is no minified.js in the gist. any gist saved by requirebin will have a minified.js, but ones that are made manually dont, e.g. https://gist.github.com/NHQ/9711493
To reproduce the bug: open http://requirebin.com/?gist=NHQ/9711493 and hit 'run', then look at the console
- 主要语言
- JavaScript
- 星标
- 389
- 派生
- 74
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
max-mapper/requirebin 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 25/100
max-mapper/requirebin#132 · 2 条评论 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 35/100
max-mapper/requirebin#130 ·
-
HTTPS support未关闭
难度 4/5 3-5 天 新手友好度 25/100
max-mapper/requirebin#128 · 1 条评论 · 3 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 25/100
max-mapper/requirebin#125 · 1 条评论 · 1 个 reaction ·
-
难度 1/5 1 小时以内 新手友好度 20/100
max-mapper/requirebin#123 ·
查看 max-mapper/requirebin 的全部 Issue
相似的 Issue
-
check:failed feeds:add
难度 2/5 1-3 小时 新手友好度 72/100
iptv-org/database#36278 · 1 条评论 ·
维护者通常 3 天内回复
-
fix
难度 2/5 1-3 小时 新手友好度 72/100
idean3885/claude-ops-agent#577 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 7 天内回复
-
agent/quality hive/hosted-available-lke648397-260827-5n31 quality testing
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
notionnext-org/NotionNext#4544 ·
维护者通常 1 天内回复