refactor(language-service): support standalone by default (#58238)

`isStandaloneDecorator()` returns `false` only when the component is explicitly not standalone

PR Close #58238
This commit is contained in:
Matthieu Riegler
2024-10-17 08:43:09 -06:00
committed by Alex Rickabaugh
parent d9ac59c88f
commit aadcfda224
@@ -559,11 +559,11 @@ export function isStandaloneDecorator(decorator: ts.Decorator): boolean | null {
continue;
}
// TODO(dylhunn): What if this is a dynamically evaluated expression?
if (property.name.getText() === 'standalone' && property.initializer.getText() === 'true') {
return true;
if (property.name.getText() === 'standalone' && property.initializer.getText() === 'false') {
return false;
}
}
return false;
return true;
}
/**