File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22
3- const path = require ( 'path' ) ;
3+ const smh = require ( './style_modifier_hunter' ) ;
4+ const style_modifier_hunter = new smh ( ) ;
45
56const getPartial = require ( './get' ) ;
67const 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
You can’t perform that action at this time.
0 commit comments