Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.

Commit ca11d69

Browse files
authored
guard against @NgModule() annotation (#19)
1 parent 87edd2d commit ca11d69

File tree

1 file changed

+1
-1
lines changed
  • packages/core/src/probes/shared-helpers/ng-module

1 file changed

+1
-1
lines changed

packages/core/src/probes/shared-helpers/ng-module/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const getAnnotationsFromModule = module => {
99
if (module.__annotations__) {
1010
return module.__annotations__[0]
1111
}
12-
if (module.decorators) {
12+
if (module.decorators && module.decorators[0].args) {
1313
return module.decorators[0].args[0]
1414
} else {
1515
return {}

0 commit comments

Comments
 (0)