diff --git a/src/compiler/app-core/app-data.ts b/src/compiler/app-core/app-data.ts index 0c378aee9d4..04890373ca6 100644 --- a/src/compiler/app-core/app-data.ts +++ b/src/compiler/app-core/app-data.ts @@ -50,7 +50,7 @@ export const getBuildFeatures = (cmps: ComponentCompilerMeta[]): BuildFeatures = member: cmps.some((c) => c.hasMember), method: cmps.some((c) => c.hasMethod), mode: cmps.some((c) => c.hasMode), - observeAttribute: cmps.some((c) => c.hasWatchCallback), + observeAttribute: cmps.some((c) => c.hasAttribute || c.hasWatchCallback), prop: cmps.some((c) => c.hasProp), propBoolean: cmps.some((c) => c.hasPropBoolean), propNumber: cmps.some((c) => c.hasPropNumber),