Skip to content

Commit 4f6bd7f

Browse files
committed
fix for chucks determinism
1 parent 7b7fc9c commit 4f6bd7f

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

lib/buildDeps.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,14 @@ function createRealChunkIds(depTree, options) {
542542
if(aCount != bCount)
543543
return aCount - bCount;
544544
function genModulesString(modules) {
545-
return Object.keys(modules).sort().join("-");
545+
var moduleIds = [];
546+
for(var id in modules) {
547+
if(modules[id] === "include") {
548+
var m = depTree.modulesById[id];
549+
moduleIds.push(m.realId);
550+
}
551+
}
552+
return moduleIds.sort().join("-");
546553
}
547554
var aModules = genModulesString(a.modules);
548555
var bModules = genModulesString(b.modules);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack",
3-
"version": "0.3.19",
3+
"version": "0.3.20",
44
"author": "Tobias Koppers @sokra",
55
"description": "Packs CommonJs Modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loading of js, json, jade, coffee, css, ... out of the box and more with custom loaders.",
66
"dependencies": {

0 commit comments

Comments
 (0)