diff --git a/dist/index.js b/dist/index.js index b6d6de4..f0d4ff4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -89,9 +89,9 @@ export const factory = function (type, module) { if (typeof prop !== "function") { return prop; } - if (desc?.get) { - return target[property]; - } + } + if (desc?.get) { + return target[property]; } return async (...args) => { await target.loadLibs(module);