Skip to content
This repository was archived by the owner on Sep 24, 2020. It is now read-only.

Commit 5a2ce9b

Browse files
committed
hmr fix
1 parent 83195bc commit 5a2ce9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if (process.env.ENV === 'development' && module.hot) {
1212
// first arguments for `module.hot.accept` and `require` methods have to be static strings
1313
// see https://github.com/webpack/webpack/issues/5668
1414
makeHot(navbarModuleId, navbarComponent,
15-
module.hot.accept(navbarModuleId, () => reload(navbarModuleId, (<any>require('./components/navbar')).NavbarComponent)));
15+
module.hot.accept('./components/navbar', () => reload(navbarModuleId, (<any>require('./components/navbar')).NavbarComponent)));
1616
}
1717

1818
new Vue({

0 commit comments

Comments
 (0)