"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/angular_devkit/build_angular/src/browser/index.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.

index.ts  (angular-cli-12.0.3):index.ts  (angular-cli-12.0.4)
skipping to change at line 146 skipping to change at line 146
config: webpack.Configuration; config: webpack.Configuration;
projectRoot: string; projectRoot: string;
projectSourceRoot?: string; projectSourceRoot?: string;
i18n: I18nOptions; i18n: I18nOptions;
}> { }> {
const originalOutputPath = options.outputPath; const originalOutputPath = options.outputPath;
// Assets are processed directly by the builder except when watching // Assets are processed directly by the builder except when watching
const adjustedOptions = options.watch ? options : { ...options, assets: [] }; const adjustedOptions = options.watch ? options : { ...options, assets: [] };
const { const { config, projectRoot, projectSourceRoot, i18n } =
config, await generateI18nBrowserWebpackConfigFromContext(
projectRoot, adjustedOptions,
projectSourceRoot, context,
i18n, (wco) => [
} = await generateI18nBrowserWebpackConfigFromContext( getCommonConfig(wco),
adjustedOptions, getBrowserConfig(wco),
context, getStylesConfig(wco),
(wco) => [ getStatsConfig(wco),
getCommonConfig(wco), getAnalyticsConfig(wco, context),
getBrowserConfig(wco), getCompilerConfig(wco),
getStylesConfig(wco), wco.buildOptions.webWorkerTsConfig ? getWorkerConfig(wco) : {},
getStatsConfig(wco), ],
getAnalyticsConfig(wco, context), { differentialLoadingNeeded },
getCompilerConfig(wco), );
wco.buildOptions.webWorkerTsConfig ? getWorkerConfig(wco) : {},
],
{ differentialLoadingNeeded },
);
// Validate asset option values if processed directly // Validate asset option values if processed directly
if (options.assets?.length && !adjustedOptions.assets?.length) { if (options.assets?.length && !adjustedOptions.assets?.length) {
normalizeAssetPatterns( normalizeAssetPatterns(
options.assets, options.assets,
normalize(context.workspaceRoot), normalize(context.workspaceRoot),
normalize(projectRoot), normalize(projectRoot),
projectSourceRoot === undefined ? undefined : normalize(projectSourceRoot) , projectSourceRoot === undefined ? undefined : normalize(projectSourceRoot) ,
).forEach(({ output }) => { ).forEach(({ output }) => {
if (output.startsWith('..')) { if (output.startsWith('..')) {
skipping to change at line 806 skipping to change at line 802
function generateBundleInfoStats( function generateBundleInfoStats(
bundle: ProcessBundleFile, bundle: ProcessBundleFile,
chunk: webpack.StatsChunk | undefined, chunk: webpack.StatsChunk | undefined,
chunkType: ChunkType, chunkType: ChunkType,
): BundleStats { ): BundleStats {
return generateBundleStats({ return generateBundleStats({
size: bundle.size, size: bundle.size,
files: bundle.map ? [bundle.filename, bundle.map.filename] : [bundle.filenam e], files: bundle.map ? [bundle.filename, bundle.map.filename] : [bundle.filenam e],
names: chunk?.names, names: chunk?.names,
entry: !!chunk?.names?.includes('runtime'),
initial: !!chunk?.initial, initial: !!chunk?.initial,
rendered: true, rendered: true,
chunkType, chunkType,
}); });
} }
function mapEmittedFilesToFileInfo(files: EmittedFiles[] = []): FileInfo[] { function mapEmittedFilesToFileInfo(files: EmittedFiles[] = []): FileInfo[] {
const filteredFiles: FileInfo[] = []; const filteredFiles: FileInfo[] = [];
for (const { file, name, extension, initial } of files) { for (const { file, name, extension, initial } of files) {
if (name && initial) { if (name && initial) {
 End of changes. 2 change blocks. 
20 lines changed or deleted 15 lines changed or added

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