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 470d47e + e65d0b3 commit 5ee94feCopy full SHA for 5ee94fe
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