Hi,
When executing ng build --prod the following error appears.
ERROR in Error during template compile of 'AppComponent'
Function calls are not supported in decorators but 'beforeMethod' was called in 'log'
'log' calls 'beforeMethod' at src\app\kaop-test.ts(4,10).
This only happens with AOT enabled.
Example repo: kaop-ts-issue