File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -85,19 +85,20 @@ export default merge(common, {
85
85
/ \. c a d d y f i l e $ /
86
86
] ,
87
87
maximumFileSizeToCacheInBytes : 100 * 1024 * 1024 ,
88
+ // TODO: This option specifically is what fails the build. Seemingly even if it's empty?
88
89
manifestTransforms : [
89
90
( originalManifest : any , compilation : any ) => {
90
91
// Add integrity info to every file, to ensure the cache can't be
91
92
// corrupted. We have seen this in practice, I think due to AWS outage
92
93
// issues? This helps protect against possible corruptions:
93
94
const manifest = originalManifest . map ( ( entry : any ) => {
94
- const asset = compilation . getAsset ( entry . url ) ;
95
- const assetSource = asset . source . source ( ) ;
96
- entry . integrity = ssri . fromData (
97
- assetSource instanceof ArrayBuffer
98
- ? Buffer . from ( assetSource ) // Wasm!
99
- : assetSource
100
- ) . toString ( ) ;
95
+ // const asset = compilation.getAsset(entry.url);
96
+ // const assetSource = asset.source.source();
97
+ // entry.integrity = ssri.fromData(
98
+ // assetSource instanceof ArrayBuffer
99
+ // ? Buffer.from(assetSource) // Wasm!
100
+ // : assetSource
101
+ // ).toString();
101
102
return entry ;
102
103
} ) ;
103
104
You can’t perform that action at this time.
0 commit comments