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 470d47e commit e65d0b3Copy full SHA for e65d0b3
src/plugin/index.ts
@@ -40,8 +40,8 @@ export const transform = async (args: any /* TODO */) => {
40
...args,
41
src:
42
"export default String.raw`" +
43
- escape(res) +
44
- "`.replace(/\\\\([`$])/g, '\\$1')",
+ escape(res).replace(/\$\{(.*?)\}/g, '\\$\\{$1\\}') +
+ "`.replace(/\\\\([`${}])/g, '\\$1')",
45
});
46
}
47
0 commit comments