Skip to content

Commit c777a95

Browse files
committed
feat(taddy): generate prop hash based on original key
1 parent 6533ea6 commit c777a95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

taddy/RuleInjector/Sheet.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ abstract class Sheet {
5050
hash = hash ? '-' + hash : '';
5151
const {nameGenerator} = config;
5252

53-
const cssKey = camelToKebab(key);
54-
55-
const name = nameGenerator.getName(cssKey, value, {
53+
const name = nameGenerator.getName(key, value, {
5654
postfix,
5755
at,
5856
});
5957

58+
const cssKey = camelToKebab(key);
59+
6060
const result = Object.create(null);
6161
// result[propHash + postfixHash] = value + hash
6262
result[name[0] + name[1] + name[2] + name[3]] = name[4] + hash;

0 commit comments

Comments
 (0)