Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
debug-require-webpack-plugin: Handle missing chunkGraph.
Anders Kaseorg51971a48f3f6
diff --git a/tools/debug-require-webpack-plugin.ts b/tools/debug-require-webpack-plugin.tsindex 09bd4cf05a3..c5bd6e59bb3 100644--- a/tools/debug-require-webpack-plugin.ts+++ b/tools/debug-require-webpack-plugin.ts@@ -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(