Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: namespace code-split moment locale chunks to separate them from app chunks #507

Merged
merged 1 commit into from
Feb 19, 2021

Conversation

amcgee
Copy link
Member

@amcgee amcgee commented Feb 18, 2021

This is a very minor under-the-hood change.

Previously, all code-split chunks in an application used a numeric id + hash as their filename. This is technically fine, but it becomes hard to tell which chunks are important when there are 100+ moment locale chunks each 5-20kb in size and just a few "core" chunks numbered something like 135, 136, and 137 which contain the actual application code.

This change adds a webpack magic comment which results in moment locale chunks generated into the static/js/moment-locales directory and named with the tag of the relevant locale instead of a random number (fr.HASH.js instead of 13.HASH.js)

@amcgee amcgee requested a review from a team February 18, 2021 18:59
@amcgee amcgee merged commit cecb3c2 into master Feb 19, 2021
@amcgee amcgee deleted the fix-locale-chunk-naming branch February 19, 2021 09:53
dhis2-bot added a commit that referenced this pull request Feb 19, 2021
## [5.5.3](v5.5.2...v5.5.3) (2021-02-19)

### Bug Fixes

* namespace code-split moment locale chunks to separate them from app chunks ([#507](#507)) ([cecb3c2](cecb3c2))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 5.5.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

3 participants