Merge pull request 'fix: properly resolve design components' (#31) from Purple-EyeZ/Kettu:dev into dev

Reviewed-on: https://codeberg.org/cocobo1/Kettu/pulls/31
This commit is contained in:
cocobo1 2026-08-27 09:08:29 +02:00
commit f5bbcecade

View file

@ -117,17 +117,13 @@ for (const [id, moduleExports] of cacher.getModules()) {
}
const exportsKeysLength = Reflect.ownKeys(actualExports).length;
if (_source[prop] && exportsKeysLength >= _source[prop]) {
if (_source[prop] && exportsKeysLength <= _source[prop]) {
continue;
}
_module[prop] = actualExports[prop];
_source[prop] = Reflect.ownKeys(actualExports).length;
cacher.cacheId(id);
if (exportsKeysLength === 1) {
redesignProps.delete(prop);
}
}
}