mirror of https://github.com/zulip/zulip.git
debug-require-webpack-plugin: Add null check for TypeScript.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
eef65d7e30
commit
e6344bd1f5
|
@ -89,6 +89,9 @@ export default class DebugRequirePlugin implements WebpackPluginInstance {
|
||||||
(m) => {
|
(m) => {
|
||||||
if (m instanceof NormalModule) {
|
if (m instanceof NormalModule) {
|
||||||
const id = compilation.chunkGraph.getModuleId(m);
|
const id = compilation.chunkGraph.getModuleId(m);
|
||||||
|
if (id === null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (m.resource === debugRequirePath) {
|
if (m.resource === debugRequirePath) {
|
||||||
hasDebugRequire = true;
|
hasDebugRequire = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue