Skip to content

Commit 224b2ae

Browse files
committed
make chunks more deterministic
1 parent 78aea22 commit 224b2ae

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

ember-cli-build.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,22 @@ module.exports = function (defaults) {
2121
exclude: ['downloads'],
2222
},
2323
guidemaker: guidemakerConfig,
24+
autoImport: {
25+
// taken from https://github.com/discourse/discourse/pull/18907/files
26+
webpack: {
27+
output: {
28+
// Workaround for https://github.com/ef4/ember-auto-import/issues/519
29+
// Upstreamed in https://github.com/ef4/ember-auto-import/pull/548
30+
filename: `chunk.[id].[contenthash].js`,
31+
chunkFilename: `chunk.[id].[contenthash].js`,
32+
},
33+
optimization: {
34+
// Workaround to provide deterministic chunk output
35+
// See https://github.com/ef4/ember-auto-import/issues/478#issuecomment-1000526638
36+
moduleIds: 'size',
37+
},
38+
},
39+
},
2440
});
2541

2642
// Use `app.import` to add additional libraries to the generated

0 commit comments

Comments
 (0)