Skip to content

Commit 3160c40

Browse files
committed
WIP: test workbox transform no-op
1 parent 7a94476 commit 3160c40

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

automation/webpack.prod.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,20 @@ export default merge(common, {
8585
/\.caddyfile$/
8686
],
8787
maximumFileSizeToCacheInBytes: 100 * 1024 * 1024,
88+
// TODO: This option specifically is what fails the build. Seemingly even if it's empty?
8889
manifestTransforms: [
8990
(originalManifest: any, compilation: any) => {
9091
// Add integrity info to every file, to ensure the cache can't be
9192
// corrupted. We have seen this in practice, I think due to AWS outage
9293
// issues? This helps protect against possible corruptions:
9394
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();
101102
return entry;
102103
});
103104

0 commit comments

Comments
 (0)