mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
add comment for improvements
This commit is contained in:
parent
923a1a2057
commit
eb60f6717a
@ -33,6 +33,9 @@ module.exports = function injectServiceWorker(swFile) {
|
||||
const globalHash = getBuildHash(cachedFileNames, uncachedFileContentMap);
|
||||
swSource = await buildServiceWorker(swSource, version, globalHash, assets);
|
||||
const outputName = path.basename(absoluteSwFile);
|
||||
// TODO: do normal build transformations for service worker too,
|
||||
// I think if we emit it as a chunk rather than an asset it would
|
||||
// but we can't emit chunks anymore in generateBundle I think ...
|
||||
this.emitFile({
|
||||
type: "asset",
|
||||
fileName: outputName,
|
||||
|
Loading…
Reference in New Issue
Block a user