mgechev / ngast

Parser for Angular projects.

Home Page:https://mgechev.github.io/ngast/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question- Is there a way to not follow aot in ngast(v0.4.0)?

shikharka-magic opened this issue · comments

Lazy loaded modules gives error (The AOT collector does not support the arrow function)

@Component({
  ...
  providers: [{provide: server, useFactory: () => new Server()}]
})

ERROR - Function expressions are not supported in decorators

Is there a way to not follow aot in ngast(v0.4.0)?

There's no way. We use the Angular compiler and if its unable to parse a file ngast fill fail as well.