mirror of https://github.com/zulip/zulip.git
debug-require-webpack-plugin: Handle missing chunkGraph.
This seems to be triggered by mini-css-extract-plugin@2.4.0. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
ea88ec9e06
commit
51971a48f3
|
@ -74,6 +74,10 @@ export default class DebugRequirePlugin implements WebpackPluginInstance {
|
|||
compilation.mainTemplate.hooks.bootstrap.tap(
|
||||
"DebugRequirePlugin",
|
||||
(source: string, chunk: Chunk) => {
|
||||
if (compilation.chunkGraph === undefined) {
|
||||
return source;
|
||||
}
|
||||
|
||||
const ids: [string, string | number][] = [];
|
||||
let hasDebugRequire = false;
|
||||
compilation.chunkGraph.hasModuleInGraph(
|
||||
|
|
Loading…
Reference in New Issue