Plugin SDK: keep root alias reflection lazy

This commit is contained in:
Gustavo Madeira Santana
2026-03-16 12:35:13 +00:00
parent ad18866bcc
commit c186176ca3

View File

@@ -169,9 +169,8 @@ rootExports = new Proxy(target, {
},
ownKeys() {
const keys = new Set(Reflect.ownKeys(target));
const monolithic = getMonolithicSdk();
if (monolithic) {
for (const key of Reflect.ownKeys(monolithic)) {
if (monolithicSdk && typeof monolithicSdk === "object") {
for (const key of Reflect.ownKeys(monolithicSdk)) {
if (!keys.has(key)) {
keys.add(key);
}