Skip to content

Commit 30af8d0

Browse files
test: expect the dynamic requires of jest-worker's processChild in big-assets
The case bundles minimizer-webpack-plugin itself, and from 5.12 the plugin reaches jest-worker's `processChild` as well as `threadChild`, whose two `require(file)` calls each report a critical dependency. Claude-Session: https://claude.ai/code/session_01Vszf1WJhCqatsMQ2xZLF9x
1 parent 39f67ec commit 30af8d0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎test/cases/large/big-assets/warnings.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
module.exports = [
44
// ObjectMiddleware, loader-runner, jest-worker, minimizer-webpack-plugin/utils.js
5-
// and the two dynamic requires of the jest-worker child the plugin nests
5+
// and the two dynamic requires in each jest-worker child the plugin nests
6+
// (`threadChild`, and `processChild` since minimizer-webpack-plugin 5.12)
7+
/Critical dependency: the request of a dependency is an expression/,
8+
/Critical dependency: the request of a dependency is an expression/,
69
/Critical dependency: the request of a dependency is an expression/,
710
/Critical dependency: the request of a dependency is an expression/,
811
/Critical dependency: the request of a dependency is an expression/,

0 commit comments

Comments
 (0)