chihab / dotenv-run

Seamlessly load environment variables. Supports cli, esbuild, rollup, vite, webpack, angular. ESM and Monorepos.
238 stars 17 forks source link

Angular Errors are swallowed with esbuild on the console. #87

Closed DerAlbertCom closed 6 months ago

DerAlbertCom commented 6 months ago

Take the following component.

import {ChangeDetectionStrategy, Component} from '@angular/core';

@Component({
  selector: 'app-root',
  template: `<router-outlet /> {{ blah }}`,
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AppComponent {
  blah ='';
}

run ng serve, everything is fine.

Now change blah in the template to bla, save. No Error in the CLI Console.

With the original dev-server builder from Angular, the errors shows up.

chihab commented 6 months ago

Fixed in latest update. Could you please give it a try?

DerAlbertCom commented 6 months ago

Works! Thank you.