This is what my profiler is showing for an Angular 7 app, built with angular-cli.
Every function call is bundled under zone.js
, and I cannot get useful information on what runs and for how long.
The app is running with: ng serve
, and I think is in debug mode:
in main.ts
if (environment.production) {
console.log('production mode!');
enableProdMode();
} else {
console.log('debug mode!');
At runtime, enableProdMode()
doesn't get called.
I thought that my angular.json
configures webpack to run in production mode, but it is the exact same as a new project with ng new
(diff'ed them), except adding some external scripts + scss files.