Skip to content

Commit

Permalink
fix(variant-group): magic-string overwrite error (#2834)
Browse files Browse the repository at this point in the history
  • Loading branch information
chizukicn committed Jul 6, 2023
1 parent 757b7f1 commit 36ae01f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/utils/variantGroup.ts
Expand Up @@ -90,7 +90,7 @@ export function expandVariantGroup(str: string | MagicString, separators = ['-',
}
else {
return str.length()
? str.overwrite(0, str.length(), expanded)
? str.overwrite(0, str.original.length, expanded)
: str
}
}

0 comments on commit 36ae01f

Please sign in to comment.