From 43244fa0263edb01f6d158941d7edccd7fbb3770 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 3 Jun 2022 12:08:10 +0530 Subject: [PATCH] Add explaining comment --- scripts/build-plugins/rollup-plugin-build-themes.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build-plugins/rollup-plugin-build-themes.js b/scripts/build-plugins/rollup-plugin-build-themes.js index 8d05f58a..60e190b6 100644 --- a/scripts/build-plugins/rollup-plugin-build-themes.js +++ b/scripts/build-plugins/rollup-plugin-build-themes.js @@ -246,6 +246,9 @@ module.exports = function buildThemes(options) { }, generateBundle(_, bundle) { + // assetMap: Mapping from asset-name (eg: element-dark.css) to AssetInfo + // chunkMap: Mapping from theme-location (eg: hydrogen-web/src/.../css/themes/element) to a list of ChunkInfo + // types of AssetInfo and ChunkInfo can be found at https://rollupjs.org/guide/en/#generatebundle const { assetMap, chunkMap, runtimeThemeChunk } = parseBundle(bundle); const manifestLocations = []; for (const [location, chunkArray] of chunkMap) {