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) {