"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/angular_devkit/build_angular/src/webpack/configs/stats.ts" between
angular-cli-12.0.3.tar.gz and angular-cli-12.0.4.tar.gz

About: Angular CLI is a command line interface for Angular.

stats.ts  (angular-cli-12.0.3):stats.ts  (angular-cli-12.0.4)
skipping to change at line 18 skipping to change at line 18
import { WebpackConfigOptions } from '../../utils/build-options'; import { WebpackConfigOptions } from '../../utils/build-options';
const webpackOutputOptions = { const webpackOutputOptions = {
all: false, // Fallback value for stats options when an option is not defined. It has precedence over local webpack defaults. all: false, // Fallback value for stats options when an option is not defined. It has precedence over local webpack defaults.
colors: true, colors: true,
hash: true, // required by custom stat output hash: true, // required by custom stat output
timings: true, // required by custom stat output timings: true, // required by custom stat output
chunks: true, // required by custom stat output chunks: true, // required by custom stat output
builtAt: true, // required by custom stat output builtAt: true, // required by custom stat output
chunkModules: false,
children: false, // listing all children is very noisy in AOT and hides warnin
gs/errors
modules: false,
reasons: false,
warnings: true, warnings: true,
errors: true, errors: true,
assets: true, // required by custom stat output assets: true, // required by custom stat output
version: false, cachedAssets: true, // required for bundle size calculators
errorDetails: false,
moduleTrace: false, // Needed for markAsyncChunksNonInitial.
ids: true,
entrypoints: true,
}; };
const verboseWebpackOutputOptions: Record<string, boolean | string | number> = { const verboseWebpackOutputOptions: Record<string, boolean | string | number> = {
// The verbose output will most likely be piped to a file, so colors just mess it up. // The verbose output will most likely be piped to a file, so colors just mess it up.
colors: false, colors: false,
usedExports: true, usedExports: true,
optimizationBailout: true, optimizationBailout: true,
reasons: true, reasons: true,
children: true, children: true,
assets: true, assets: true,
version: true, version: true,
chunkModules: true, chunkModules: true,
errorDetails: true, errorDetails: true,
moduleTrace: true, moduleTrace: true,
logging: 'verbose', logging: 'verbose',
modulesSpace: Infinity,
}; };
verboseWebpackOutputOptions['modulesSpace'] = Infinity;
export function getWebpackStatsConfig(verbose = false) { export function getWebpackStatsConfig(verbose = false) {
return verbose return verbose
? { ...webpackOutputOptions, ...verboseWebpackOutputOptions } ? { ...webpackOutputOptions, ...verboseWebpackOutputOptions }
: webpackOutputOptions; : webpackOutputOptions;
} }
export function getStatsConfig(wco: WebpackConfigOptions) { export function getStatsConfig(wco: WebpackConfigOptions) {
const verbose = !!wco.buildOptions.verbose; const verbose = !!wco.buildOptions.verbose;
return { stats: getWebpackStatsConfig(verbose) }; return { stats: getWebpackStatsConfig(verbose) };
 End of changes. 4 change blocks. 
10 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)