Skip to content

Commit 0c64534

Browse files
authored
fix: handle path with dollar signs (#149)
1 parent c4ca347 commit 0c64534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ if (module.hot) {
4646
export default $2;
4747
`;
4848

49-
return code.replace(/(export default ([^;]*));/, replacement);
49+
return code.replace(/(export default ([^;]*));/, () => replacement);
5050
}
5151

5252
function posixify(file) {

0 commit comments

Comments
 (0)