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 72e90a2 commit b351acbCopy full SHA for b351acb
src/index.js
@@ -15,7 +15,12 @@ const processor = (css) => {
15
let path = doubleQuotePath || singleQuotePath;
16
imports[path] = imports[path] || {};
17
let tmpSymbols = symbols.split(' ')
18
- .map(s => imports[path][s] = `__tmp_${s}_${processor.getRandomStr()}`);
+ .map(s => {
19
+ if(!imports[path][s]) {
20
+ imports[path][s] = `__tmp_${s}_${processor.getRandomStr()}`;
21
+ }
22
+ return imports[path][s];
23
+ });
24
decl.value = tmpSymbols.join(' ');
25
}
26
});
0 commit comments