Skip to content

Commit 289ca87

Browse files
authored
Fix hmr for template files
willyelm#13
1 parent 870a033 commit 289ca87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module.exports = function (source) {
3030
}
3131
}
3232
let template = pug.compile(source, options)
33+
template.dependencies.forEach(this.addDependency)
3334
let data = query.data || {}
3435
let html = template(data)
3536
if (query.exports === false) {

0 commit comments

Comments
 (0)