Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): reduce fast sourcemap threshold
Browse files Browse the repository at this point in the history
High fidelity sourcemap processing can be expensive for larger bundle sizes.  This reduces the threshold to the original 500KB value to improve performance.

(cherry picked from commit d2dce46)
  • Loading branch information
clydin authored and dgp1130 committed Mar 24, 2020
1 parent 3251b7e commit 54a538f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import { I18nOptions } from './i18n-options';
const cacache = require('cacache');
const deserialize = ((v8 as unknown) as { deserialize(buffer: Buffer): unknown }).deserialize;

// If code size is larger than 1MB, consider lower fidelity but faster sourcemap merge
const FAST_SOURCEMAP_THRESHOLD = 1024 * 1024;
// If code size is larger than 500KB, consider lower fidelity but faster sourcemap merge
const FAST_SOURCEMAP_THRESHOLD = 500 * 1024;

export interface ProcessBundleOptions {
filename: string;
Expand Down

0 comments on commit 54a538f

Please sign in to comment.