diff options
author | 2022-02-08 01:24:05 -0800 | |
---|---|---|
committer | 2022-02-08 01:24:05 -0800 | |
commit | 4a24240d9fb2d805c15272343c990f414af75e8c (patch) | |
tree | 74e42208182198053aad53da58506963c9c459bb /src | |
parent | 347b34886550ce60d2723db58b7d04b0445661db (diff) | |
download | bun-4a24240d9fb2d805c15272343c990f414af75e8c.tar.gz bun-4a24240d9fb2d805c15272343c990f414af75e8c.tar.zst bun-4a24240d9fb2d805c15272343c990f414af75e8c.zip |
Possibly fix #98
Diffstat (limited to '')
-rw-r--r-- | src/runtime/hmr.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/hmr.ts b/src/runtime/hmr.ts index 9bfdbb77c..2726a95a1 100644 --- a/src/runtime/hmr.ts +++ b/src/runtime/hmr.ts @@ -1393,6 +1393,7 @@ if (typeof window !== "undefined") { i++ // let i = HMRModule.dependencies.graph_used - 1; // i > this.module_index; // i-- ) { const mod = HMRModule.dependencies.modules[i]; + if (!mod) continue; // this array is holey sometimes let handled = false; if (!mod.exports.__hmrDisable) { |