We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4f1d72a + 6fe5de0 commit d26d920Copy full SHA for d26d920
src/plugin/index.ts
@@ -44,8 +44,8 @@ export const createTransformer = (
44
...args,
45
src:
46
"export default String.raw`" +
47
- escape(res).replace(/\$\{(.*?)\}/g, "\\$\\{$1\\}") +
48
- "`.replace(/\\\\([`${}])/g, '\\$1')",
+ escape(res).replace(/\$/g, '\\$') +
+ "`.replace(/\\\\([`$])/g, '\\$1')",
49
});
50
}
51
0 commit comments