Chunk contents are lost with some values of `output.libraryTarget`
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- javascript, webpack
调研方向
从链接的 webpack-bundle-analyzer 复现开始,比较所列 output.libraryTarget 值的报告,尤其是 global、window、this、commonjs、commonjs2 和 assign,并与正常工作的 target 进行对比。跟踪 chunk 内容的收集和显示方式,然后验证受影响的 target 会在报告中显示 chunk 内容,同时不会导致正常工作用例出现回归。
由索引模型根据 Issue 内容生成。
描述
Issue description
When using global, window, this, commonjs, commonjs2, or assign as output.libraryTarget, chunk contents are not displayed in report. var, umd, 'amd', 'amd-require', 'system', and 'jsonp' work OK.
Technical info
System:
OS: macOS 10.15.6
CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Memory: 1.35 GB / 32.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.18.2 - ~/n/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.5 - ~/n/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
npmPackages:
webpack: ^4.43.0 => 4.43.0
webpack-bundle-analyzer: ^3.8.0 => 3.8.0
webpack-cli: ^3.3.12 => 3.3.12
Reproduction
https://github.com/Hypnosphi/webpack-bundle-analyzer-repro
Expected

Actual

- 主要语言
- JavaScript
- 星标
- 12.7k
- 派生
- 518
- 平均合并
- 17 天 3 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
webpack/webpack-bundle-analyzer 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
webpack/webpack-bundle-analyzer#737 · 5 条评论 ·
-
难度 3/5 1-2 天 新手友好度 45/100
webpack/webpack-bundle-analyzer#689 · 11 条评论 ·
-
[bug] `TypeError: Cannot read properties of undefined (reading 'filter')` when passing stats object未关闭status: Needs triage
难度 3/5 1-2 天 新手友好度 35/100
webpack/webpack-bundle-analyzer#669 · 6 条评论 · 3 个 reaction ·
-
[Nice to Have] plugin should use webpack InfrastructureLogger and output report to compiler.outputFileSystem可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
webpack/webpack-bundle-analyzer#476 · 1 条评论 ·
-
Errors when using with the webpack dev server 4可能已有人在做 @Br1an67 于 230 天前认领。 未关闭flag: Community help wanted type: Bug
难度 4/5 3-5 天 新手友好度 35/100
webpack/webpack-bundle-analyzer#471 · 18 条评论 · 3 个 reaction ·
查看 webpack/webpack-bundle-analyzer 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
vercel-labs/agent-skills#348 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
NanmiCoder/dsh-agent-teams#289 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
c1overzz/dsh-bili-scroll#124 ·
维护者通常 1 天内回复