Skip to content

Commit 8af71c0

Browse files
JeanMechealxhub
authored andcommitted
refactor(language-service): support standalone by default (#58238)
`isStandaloneDecorator()` returns `false` only when the component is explicitly not standalone PR Close #58238
1 parent bc9ef72 commit 8af71c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/language-service/src/utils/ts_utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,11 +559,11 @@ export function isStandaloneDecorator(decorator: ts.Decorator): boolean | null {
559559
continue;
560560
}
561561
// TODO(dylhunn): What if this is a dynamically evaluated expression?
562-
if (property.name.getText() === 'standalone' && property.initializer.getText() === 'true') {
563-
return true;
562+
if (property.name.getText() === 'standalone' && property.initializer.getText() === 'false') {
563+
return false;
564564
}
565565
}
566-
return false;
566+
return true;
567567
}
568568

569569
/**

0 commit comments

Comments
 (0)