We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b584bd commit 8bc2fe3Copy full SHA for 8bc2fe3
index.js
@@ -68,6 +68,7 @@ module.exports.pitch = function (remainingRequest) {
68
' if(!content.locals) {',
69
' module.hot.accept(' + request + ', function() {',
70
' var newContent = require(' + request + ');',
71
+ ' if(newContent.__esModule) newContent = newContent.default;',
72
" if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];",
73
' update(newContent);',
74
' });',
0 commit comments