Rename function name

This commit is contained in:
RMidhunSuresh 2022-04-04 12:02:59 +05:30
parent 545ff2ec32
commit 9a96112146

View File

@ -53,7 +53,7 @@ function addResolvedVariablesToRootSelector(root, { Rule, Declaration }) {
root.append(newRule);
}
function populateMapWithDerivedVariables(map, cssFileLocation) {
function populateMapWithIcons(map, cssFileLocation) {
const location = cssFileLocation.match(/(.+)\/.+\.css/)?.[1];
if (map.has(location)) {
/**
@ -82,7 +82,7 @@ module.exports = (opts = {}) => {
}
if (opts.compiledVariables){
const cssFileLocation = root.source.input.from;
populateMapWithDerivedVariables(opts.compiledVariables, cssFileLocation);
populateMapWithIcons(opts.compiledVariables, cssFileLocation);
}
},
};