require("webpack") is a common misuses in webpack plugin, which will cause multiple webpack instance problem in monorepo, the correct way to get the webpack instance is compiler.webpack
How is the change tested?
Changelog
Changelog(CN)
Changelog(EN)
Related issues
Checklist:
[ ] Provide changelog for relevant changes (e.g. bug fixes and new features) if applicable.
[ ] Changes are submitted to the appropriate branch (e.g. features should be submitted to feature branch and others should be submitted to master branch)
Types of changes
Background and context
Solution
require("webpack")
is a common misuses in webpack plugin, which will cause multiple webpack instance problem in monorepo, the correct way to get the webpack instance iscompiler.webpack
How is the change tested?
Changelog
Checklist:
feature
branch and others should be submitted tomaster
branch)Other information