mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
Always set map
This commit is contained in:
parent
76789eacf1
commit
454345c9b2
@ -96,14 +96,6 @@ function addResolvedVariablesToRootSelector(root, {Rule, Declaration}) {
|
||||
|
||||
function populateMapWithDerivedVariables(map, cssFileLocation) {
|
||||
const location = cssFileLocation.match(/(.+)\/.+\.css/)?.[1];
|
||||
if (map.has(location)) {
|
||||
/**
|
||||
* This postcss plugin is going to run on all theme variants of a single theme.
|
||||
* But we only really need to populate the map once since theme variants only differ
|
||||
* by the values of the base-variables and we don't care about values here.
|
||||
*/
|
||||
return;
|
||||
}
|
||||
const derivedVariables = [
|
||||
...([...resolvedMap.keys()].filter(v => !aliasMap.has(v))),
|
||||
...([...aliasMap.entries()].map(([alias, variable]) => `${alias}=${variable}`))
|
||||
|
Loading…
Reference in New Issue
Block a user