fix(config): update .smartconfig.json handling and harden bundler runtime compatibility

This commit is contained in:
2026-05-09 12:34:00 +00:00
parent f19c7c69af
commit e5b2f2ba30
18 changed files with 2712 additions and 3190 deletions
+4 -5
View File
@@ -1,16 +1,15 @@
// Test file to verify decorator functionality
const decoratedClasses: Function[] = [];
function trackClass(constructor: Function) {
decoratedClasses.push(constructor);
return constructor;
function trackClass(value: Function, _context: ClassDecoratorContext) {
decoratedClasses.push(value);
}
function logMethod(_target: any, context: ClassMethodDecoratorContext) {
function logMethod(method: Function, context: ClassMethodDecoratorContext) {
const methodName = String(context.name);
return function (this: any, ...args: any[]) {
console.log(`Calling method: ${methodName}`);
return (_target as Function).apply(this, args);
return method.apply(this, args);
};
}