@modular-css/processor
Advanced tools
Comparing version 29.0.0 to 29.0.1
{ | ||
"name": "@modular-css/processor", | ||
"version": "29.0.0", | ||
"version": "29.0.1", | ||
"description": "A streamlined reinterpretation of CSS Modules", | ||
@@ -5,0 +5,0 @@ "main": "./processor.js", |
@@ -119,2 +119,13 @@ "use strict"; | ||
}, | ||
RootExit() { | ||
// Update any references that might've been affected by imports | ||
for(const name of Object.keys(values)) { | ||
const { value } = values[name]; | ||
if(value in values) { | ||
values[name] = values[value]; | ||
} | ||
} | ||
}, | ||
}; | ||
@@ -121,0 +132,0 @@ }, |
@@ -37,2 +37,3 @@ "use strict"; | ||
const parsed = value(thing[prop]); | ||
let modified = false; | ||
@@ -51,5 +52,9 @@ parsed.walk((node) => { | ||
node.value = current.value; | ||
modified = true; | ||
}); | ||
thing[prop] = parsed.toString(); | ||
if(modified) { | ||
thing[prop] = parsed.toString(); | ||
} | ||
}; | ||
@@ -56,0 +61,0 @@ |
165272
5023