angular / angular-cli

CLI tool for Angular
https://cli.angular.dev
MIT License
26.79k stars 11.98k forks source link

Disable build warnings for third-party scripts and styles #28806

Closed HazzMan2409 closed 3 weeks ago

HazzMan2409 commented 3 weeks ago

Command

build, serve

Is this a regression?

The previous version in which this bug was not present was

No response

Description

I am updating our build from webpack to esbuild. I am being bombarded with warnings for css and javascript in third-party styles and scripts. Is patching the scripts the only way I can remove the warnings from the build?

It looks like from:

that it is the case but I wanted to double check. If so, it isn't documented. If not, I'll convert to a feature request.

Minimal Reproduction

Pull in dijit@1.17.2's css from (./node_modules/dijit/themes/dijit.css).

Pull in gojs@3.0.13

Or any other example of third-parties generating build warnings.

Exception or Error

No response

Your Environment

Angular CLI: 18.2.11 Node: 20.11.0 Package Manager: npm 10.2.4 OS: darwin arm64

Angular: 18.2.10 ... animations, common, compiler, compiler-cli, core, forms ... platform-browser, platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.1802.11 @angular-devkit/build-angular 18.2.11 @angular-devkit/core 18.2.11 @angular-devkit/schematics 18.2.11 @angular/cli 18.2.11 @schematics/angular 18.2.11 rxjs 7.8.1 typescript 5.5.4 zone.js 0.14.10

Anything else relevant?

No response

alan-agius4 commented 3 weeks ago

At the moment there is no way to turn these warnings off.

This issue is already being tracked in one that you provided.

https://github.com/angular/angular-cli/issues/26140