Commit e4afd97
authored
Fix non-deterministic build output in npm run build-module (#415)
- Use relative entry paths instead of absolute temp directory paths
- Set webpack context to inputPath for consistent module resolution
- Configure deterministic module and chunk IDs
- Disable file system timestamps in webpack snapshot
- Use deterministic hash function for output
This resolves issue #374 where builds were generating different output
each time due to Broccoli's temporary directory paths being embedded
in webpack bundles. The fix ensures reproducible builds across
different machines and platforms.
Verified with multiple builds producing identical SHA256 checksums.
Fixes #3741 parent 6fecf9a commit e4afd97
1 file changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
71 | 84 | | |
| 85 | + | |
72 | 86 | | |
73 | 87 | | |
74 | 88 | | |
| |||
0 commit comments