We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46b87ac commit c1e6267Copy full SHA for c1e6267
src/pluginWebpack4.ts
@@ -173,6 +173,15 @@ class VueLoaderPlugin {
173
watcher.close()
174
}
175
})
176
+
177
+ // In some cases, e.g. in this project's tests,
178
+ // even though needsHMR() returns true, webpack is not watching, thus no watchClose hook is called.
179
+ // So we need to close the watcher when webpack is done.
180
+ compiler.hooks.done.tap(id, () => {
181
+ if (watcher) {
182
+ watcher.close()
183
+ }
184
+ })
185
186
187
0 commit comments