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 8dcef9a commit 58cd49eCopy full SHA for 58cd49e
src/transform.ts
@@ -12,7 +12,7 @@ export default createUnplugin(() => ({
12
return regex.test(id)
13
},
14
transform (code) {
15
- const regex = /\$dt\('(.*)'\)/
+ const regex = /\$dt\('(.*)'\)/g
16
17
if (regex.test(code)) {
18
// Find any usage of `$dt('...')` in code and replace it by `var(--...)`
0 commit comments