File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -91,17 +91,19 @@ const plugin = (options = {}) => {
91
91
Once ( root , { rule } ) {
92
92
const exports = Object . create ( null ) ;
93
93
94
- function exportScopedName ( name , rawName ) {
94
+ function exportScopedName ( name , rawName , node ) {
95
95
const scopedName = generateScopedName (
96
96
rawName ? rawName : name ,
97
97
root . source . input . from ,
98
- root . source . input . css
98
+ root . source . input . css ,
99
+ node
99
100
) ;
100
101
const exportEntry = generateExportEntry (
101
102
rawName ? rawName : name ,
102
103
scopedName ,
103
104
root . source . input . from ,
104
- root . source . input . css
105
+ root . source . input . css ,
106
+ node
105
107
) ;
106
108
const { key, value } = exportEntry ;
107
109
@@ -123,14 +125,16 @@ const plugin = (options = {}) => {
123
125
return selectorParser . className ( {
124
126
value : exportScopedName (
125
127
node . value ,
126
- node . raws && node . raws . value ? node . raws . value : null
128
+ node . raws && node . raws . value ? node . raws . value : null ,
129
+ node
127
130
) ,
128
131
} ) ;
129
132
case "id" : {
130
133
return selectorParser . id ( {
131
134
value : exportScopedName (
132
135
node . value ,
133
- node . raws && node . raws . value ? node . raws . value : null
136
+ node . raws && node . raws . value ? node . raws . value : null ,
137
+ node
134
138
) ,
135
139
} ) ;
136
140
}
You can’t perform that action at this time.
0 commit comments