1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

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)
}