svelte-preprocess-cssmodules
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -28,3 +28,5 @@ "use strict"; | ||
(_a = node.children) === null || _a === void 0 ? void 0 : _a.forEach((childNode) => { | ||
if (childNode.type === 'InlineComponent') { | ||
if (childNode.type === 'InlineComponent' || | ||
childNode.type === 'EachBlock' || | ||
childNode.type === 'KeyBlock') { | ||
addDynamicVariablesToElements(processor, childNode, cssVar); | ||
@@ -48,2 +50,11 @@ } | ||
} | ||
else if (childNode.type === 'IfBlock') { | ||
addDynamicVariablesToElements(processor, childNode, cssVar); | ||
addDynamicVariablesToElements(processor, childNode.else, cssVar); | ||
} | ||
else if (childNode.type === 'AwaitBlock') { | ||
addDynamicVariablesToElements(processor, childNode.pending, cssVar); | ||
addDynamicVariablesToElements(processor, childNode.then, cssVar); | ||
addDynamicVariablesToElements(processor, childNode.catch, cssVar); | ||
} | ||
}); | ||
@@ -50,0 +61,0 @@ }; |
{ | ||
"name": "svelte-preprocess-cssmodules", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "Svelte preprocessor to generate CSS Modules classname on Svelte components", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104010
1624