diff --git a/index.js b/index.js index 320a12ce..0e3f5f4d 100644 --- a/index.js +++ b/index.js @@ -46,7 +46,7 @@ if (module.hot) { export default $2; `; - return code.replace(/(export default ([^;]*));/, replacement); + return code.replace(/(export default ([^;]*));/, () => replacement); } function posixify(file) {