X Tutup
Skip to content

fix(@angular-devkit/build-angular): exclude .map files from budget …#12012

Merged
vikerman merged 2 commits intoangular:masterfrom
alan-agius4:fix_exclude_map_from_budgets
Aug 28, 2018
Merged

fix(@angular-devkit/build-angular): exclude .map files from budget …#12012
vikerman merged 2 commits intoangular:masterfrom
alan-agius4:fix_exclude_map_from_budgets

Conversation

@alan-agius4
Copy link
Collaborator

exclude .map files from budget calculations

Closes #11999

const initialChunks = this.compilation.chunks.filter(chunk => chunk.isOnlyInitial());
const size: number = initialChunks
.reduce((files, chunk) => [...files, ...chunk.files], [])
.filter((file: string) => !/\.map$/.test(file))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

endsWith please. Should be significantly faster and more obvious as to intent.

Copy link
Collaborator Author

@alan-agius4 alan-agius4 Aug 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, updated

@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Aug 27, 2018
@vikerman vikerman merged commit 1730c79 into angular:master Aug 28, 2018
@alan-agius4 alan-agius4 deleted the fix_exclude_map_from_budgets branch August 28, 2018 04:13
vikerman pushed a commit that referenced this pull request Aug 29, 2018
#12012)

* fix(@angular-devkit/build-angular): exclude `.map` files from budget calculations

Closes #11999
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

source maps should not be included in initial budgets

4 participants

X Tutup