facebookarchive / prepack

A JavaScript bundle optimizer.
http://prepack.io
Other
14.21k stars 424 forks source link

Make diagnostics configurable #2517

Closed NTillmann closed 6 years ago

NTillmann commented 6 years ago

We need... --warnaserror // turn all warnings into recoverable errors --diagnosticaserror:PPxxxx,PPyyyy,PPzzzz,... // turn listed (non-fatal) diagnostics into recoverable errors --nodiagnostic:PPxxxx,PPyyyy,PPzzzz,... // don't mention listed (non-fatal) diagnostics, including recoverable errors

And maybe some more such as --nowarn and various combinations.