Clear and concise description of the problem
I found a lot of places with require("webpack/lib/something"), they are private and can be changed (moved to other directory, renamed, etc). There is a public API under compiler.webpack.something and it is a stable API and will not changed between versions.
Ref: webpack/webpack#20985
We can add more things if something missed in compiler.webpack, feel free to list here and we will add them
Suggested solution
Don't use private methods.
Alternative
No response
Additional context
No response
Validations
Clear and concise description of the problem
I found a lot of places with
require("webpack/lib/something"), they are private and can be changed (moved to other directory, renamed, etc). There is a public API undercompiler.webpack.somethingand it is a stable API and will not changed between versions.Ref: webpack/webpack#20985
We can add more things if something missed in
compiler.webpack, feel free to list here and we will add themSuggested solution
Don't use private methods.
Alternative
No response
Additional context
No response
Validations