Skip to content

Commit 2f84d9c

Browse files
committed
fix(parameter_hunter): Consume styleModifiers again
1 parent 13dbeaa commit 2f84d9c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

core/lib/parameter_hunter.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

3-
const path = require('path');
3+
const smh = require('./style_modifier_hunter');
4+
const style_modifier_hunter = new smh();
45

56
const getPartial = require('./get');
67
const logger = require('./log');
@@ -293,6 +294,11 @@ const parameter_hunter = function () {
293294
}
294295
}
295296

297+
//if partial has style modifier data, replace the styleModifier value
298+
if (pattern.stylePartials && pattern.stylePartials.length > 0) {
299+
style_modifier_hunter.consume_style_modifier(partialPattern, pMatch, patternlab);
300+
}
301+
296302
// set pattern.extendedTemplate pMatch with replacedPartial
297303
pattern.extendedTemplate = pattern.extendedTemplate.replace(pMatch, partialPattern.extendedTemplate);
298304

0 commit comments

Comments
 (0)