Test loader doesn't work : Critical dependency: the request of a dependency is an expression
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- node.js, typescript, webpack
- 领域
- build-system, testing, tooling
调研方向
使用 test/config/javascript-obfuscator-loader.config.js 重现报告中的命令,并检查 test/input/index.js、test/input/index-excluded.js 和 test/input/nested.js。确定发出的 critical-dependency 警告是否就是 loader 失败,然后根据该结果验证预期的 loader 测试行为并记录完成情况。
由索引模型根据 Issue 内容生成。
描述
With NodeJS v16.13.0 on Windows
$ npm run build && npx webpack --config test/config/javascript-obfuscator-loader.config.js --stats-error-details
> [email protected] build
> npx tsc
asset index.js 1.13 KiB [emitted] [minimized] (name: index) 1 related asset
asset index-excluded.js 1.02 KiB [emitted] [minimized] (name: index-excluded) 1 related asset
runtime modules 211 bytes 2 modules
cacheable modules 2.78 KiB
./test/input/index.js 1.41 KiB [built] [code generated]
./test/input/index-excluded.js 245 bytes [built] [code generated]
./test/input/nested.js 1.13 KiB [built] [code generated]
./test/input/ sync 160 bytes [built] [code generated]
WARNING in ./test/input/index.js 1:1127-1152
Critical dependency: the request of a dependency is an expression
at CommonJsRequireContextDependency.getWarnings (xxx\webpack-obfuscator\node_modules\webpack\lib\dependencies\ContextDependency.js:91:18)
at Compilation.reportDependencyErrorsAndWarnings (xxx\webpack-obfuscator\node_modules\webpack\lib\Compilation.js:3131:24)
at xxx\webpack-obfuscator\node_modules\webpack\lib\Compilation.js:2728:28
at _next2 (eval at create (xxx\webpack-obfuscator\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:25:1)
at eval (eval at create (xxx\webpack-obfuscator\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:52:1)
at xxx\webpack-obfuscator\node_modules\webpack\lib\FlagDependencyExportsPlugin.js:385:11
at xxx\webpack-obfuscator\node_modules\neo-async\async.js:2830:7
at Object.each (xxx\webpack-obfuscator\node_modules\neo-async\async.js:2850:39)
at xxx\webpack-obfuscator\node_modules\webpack\lib\FlagDependencyExportsPlugin.js:361:18
at xxx\webpack-obfuscator\node_modules\neo-async\async.js:2830:7
- 主要语言
- TypeScript
- 星标
- 930
- 派生
- 92
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
javascript-obfuscator/webpack-obfuscator 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 35/100
javascript-obfuscator/webpack-obfuscator#180 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 35/100
查看 javascript-obfuscator/webpack-obfuscator 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 88/100
-
bug needs triage
难度 2/5 1-3 小时 新手友好度 72/100
DSpace/dspace-angular#6511 ·
维护者通常 1 天内回复
-
area: frontend area:byok bug severity:low
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
Phone app shows Unknown for a remote machine whose key changed可能已有人在做 @janicduplessis 今天认领。 未关闭area: mobile priority: P3 type: bug
难度 1/5 1 小时以内 新手友好度 78/100
appandflow/stim#5006 · 1 条评论 ·
维护者通常 1 天内回复
-
Area - Local to Cloud Bug
难度 2/5 1-3 小时 新手友好度 66/100
microsoft/vscode-mssql#23209 ·
维护者通常 1 天内回复