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.
1 parent f250442 commit 6fe5de0Copy full SHA for 6fe5de0
src/plugin/index.ts
@@ -44,7 +44,7 @@ export const createTransformer = (
44
...args,
45
src:
46
"export default String.raw`" +
47
- escape(res).replace(/\$\{(.*?)\}/g, "\\$\\{$1\\}") +
+ escape(res).replace(/\$/g, '\\$') +
48
"`.replace(/\\\\([`$])/g, '\\$1')",
49
});
50
}
0 commit comments