Skip to content

Commit 5d4e865

Browse files
committed
fix Snowpack support
1 parent 4f64d9e commit 5d4e865

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runtime/hot-api.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ function applyHmr(args) {
122122
}
123123
}
124124

125+
// 2020-09-21 Snowpack master doesn't pass data as arg to dispose handler
126+
data = data || hot.data
127+
125128
data.record = r
126129

127130
if (r.current.cssId !== cssId) {

0 commit comments

Comments
 (0)