Circular dependencies in common bundle, even if unique to single entry point
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- build-system
调研方向
按所示方式使用 shared.js、entry1.js、entry2.js、one.js、two.js 和 three.js 重现该报告,然后比较存在和不存在循环依赖时的公共 bundle 与各 entry 专属 bundle 输出。完成标准是:非共享 entry 中的循环仍保留在该 entry 的输出中,同时只有共享代码被放入公共 bundle。
由索引模型根据 Issue 内容生成。
描述
Consider the following situation
// shared.js
console.log('hello from shared');
----------
// entry1.js
require('./shared');
----------
// entry2.js
require('./shared');
require('./one');
----------
// one.js
require('./two');
----------
// two.js
require('./three');
----------
// three.js
require('./one')
I have two entry points that share some code. One of my entry points has some code that isn't shared, but results in a circular dependency.
I would expect that the circular dependency in non-common code end up in the entry point specific output file, but instead it is ending up in the common file. If I remove the circular dependency, it ends up in the entry point specific output file (as I would expect).
- 主要语言
- JavaScript
- 星标
- 397
- 派生
- 24
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
browserify/factor-bundle 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 32/100
browserify/factor-bundle#95 ·
-
难度 4/5 3-5 天 新手友好度 30/100
browserify/factor-bundle#94 ·
-
难度 5/5 一周以上 新手友好度 25/100
browserify/factor-bundle#92 ·
-
难度 3/5 1-2 天 新手友好度 35/100
browserify/factor-bundle#83 ·
-
难度 3/5 1-2 天 新手友好度 35/100
browserify/factor-bundle#82 · 3 个 reaction ·
查看 browserify/factor-bundle 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
factory-active factory-automatic harness/claude-code task-identify-harness-labels-done task-identify-issue-type-done
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
documentation good first issue help wanted
难度 1/5 1-3 小时 新手友好度 85/100
zmo2s/agent-toolbox#23 ·