Skip to content

Commit c545ba8

Browse files
authored
Merge pull request #31 from halfnelson/patch-2
Fix webpack 4 support
2 parents f41cefc + c1048f0 commit c545ba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/make-hot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const renderApplyHmr = ({
7575
//
7676
`${imports.join(';')};${`
7777
if (${meta} && ${meta}.hot) {
78-
if (false) import.meta.hot.accept();
78+
if (false) ${meta}.hot.accept();
7979
$2 = ${globalName}.applyHmr({
8080
m: ${meta},
8181
id: ${json(id)},

0 commit comments

Comments
 (0)