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);
};
}
+2 -2
View File
@@ -11,10 +11,10 @@ export class MyElement extends LitElement {
`;
@property({ type: String })
name = 'World';
accessor name = 'World';
@property({ type: Number })
count = 0;
accessor count = 0;
render() {
return html`
+3 -3
View File
@@ -4,9 +4,9 @@ const myConst: string = 'hello';
await smartdelay.delayFor(1000);
function sealed(constructor: Function) {
Object.seal(constructor);
Object.seal(constructor.prototype);
function sealed(value: Function, _context: ClassDecoratorContext) {
Object.seal(value);
Object.seal(value.prototype);
}
@sealed