Skip to content

Commit f250442

Browse files
committed
feat: better escape strategy
1 parent 4f1d72a commit f250442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugin/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const createTransformer = (
4545
src:
4646
"export default String.raw`" +
4747
escape(res).replace(/\$\{(.*?)\}/g, "\\$\\{$1\\}") +
48-
"`.replace(/\\\\([`${}])/g, '\\$1')",
48+
"`.replace(/\\\\([`$])/g, '\\$1')",
4949
});
5050
}
5151

0 commit comments

Comments
 (0)