Support webpack harmony modules in self accept (#2510)

This commit is contained in:
Kevin Decker 2017-07-09 23:40:32 -05:00 committed by Arunoda Susiripala
parent d7d4b7c332
commit bd24e74a98

View file

@ -27,7 +27,7 @@ module.exports = function (content, sourceMap) {
next.router.update(r, Component)
}
}
})(module.exports.default || module.exports, ${JSON.stringify(route)})
})(typeof __webpack_exports__ !== 'undefined' ? __webpack_exports__.default : (module.exports.default || module.exports), ${JSON.stringify(route)})
`, sourceMap)
}