Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

re-bundle module if there is no minified.js on gist

未关闭
#43 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
javascript
领域
frontend

调研方向

打开报告中的 gist URL 并检查浏览器控制台,然后跟踪 gist 加载路径和 Run 路径,确认它决定使用 minified.js 还是 browserify-cdn。手动创建的、不包含 minified.js 的 gist 能够成功运行,并且现有优化对使用 requirebin 保存的 gists 仍然有效时,修复就完成了。

由索引模型根据 Issue 内容生成。

描述

help wanted

There is an optimization where;

  • If you load a gist into requirebin via the ?gist= URL on page load
  • requirebin md5 hashes the index.js of 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 load minified.js from 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

max-mapper/requirebin 的其他 Issue

查看 max-mapper/requirebin 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。