From 1ea51136861cb6deabf6e887b42a7088d4e6ab86 Mon Sep 17 00:00:00 2001 From: merceyz Date: Tue, 12 Jan 2021 09:23:10 +0100 Subject: [PATCH] fix: handle path with dollar signs --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {