Skip to content

Commit

Permalink
feat(bundle): sort module ids
Browse files Browse the repository at this point in the history
This is meant to prevent different order when building. This cause the
hash of the vendor bundle to change when it should not.
  • Loading branch information
Jenselme committed Feb 4, 2018
1 parent 41e5e57 commit 5ed65ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/build/bundle.js
Expand Up @@ -109,7 +109,7 @@ exports.Bundle = class {
}

getBundledModuleIds() {
return unique(this.includes.reduce((a, b) => a.concat(b.getAllModuleIds()), []));
return unique(this.includes.reduce((a, b) => a.concat(b.getAllModuleIds()), [])).sort();
}

getBundledFiles() {
Expand Down

0 comments on commit 5ed65ce

Please sign in to comment.