javascript-obfuscator / javascript-obfuscator/webpack-obfuscator

Test loader doesn't work : Critical dependency: the request of a dependency is an expression

Đang mở
#138 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
928
Fork
92
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

With NodeJS v16.13.0 on Windows
```
$ npm run build && npx webpack --config test/config/javascript-obfuscator-loader.config.js --stats-error-details

> webpack-obfuscator@3.5.1 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), :25:1)
at eval (eval at create (xxx\webpack-obfuscator\node_modules\tapable\lib\HookCodeFactory.js:33:10), :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
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Tái hiện lệnh trong báo cáo với test/config/javascript-obfuscator-loader.config.js và kiểm tra test/input/index.js, test/input/index-excluded.js và test/input/nested.js. Xác định xem cảnh báo critical-dependency được phát ra có phải là lỗi của loader hay không, sau đó xác minh hành vi dự kiến của bài kiểm tra loader và ghi lại việc hoàn tất dựa trên kết quả đó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
node.js, typescript, webpack
Lĩnh vực
build-system, testing, tooling
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.