mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user