diff --git a/index.js b/index.js index 926a498b..570ef3d2 100644 --- a/index.js +++ b/index.js @@ -68,6 +68,7 @@ module.exports.pitch = function (remainingRequest) { ' if(!content.locals) {', ' module.hot.accept(' + request + ', function() {', ' var newContent = require(' + request + ');', + ' if(newContent.__esModule) newContent = newContent.default;', " if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];", ' update(newContent);', ' });',