| 1231 | } |
| 1232 | |
| 1233 | private _getDefaultValue( |
| 1234 | chunk: RenderedChunk | OutputChunk | OutputAsset, |
| 1235 | ): ChunkMetadata | AssetMetadata { |
| 1236 | return chunk.type === 'chunk' |
| 1237 | ? { |
| 1238 | importedAssets: new Set(), |
| 1239 | importedCss: new Set(), |
| 1240 | // NOTE: adding this as a workaround for now ideally we'd want to remove this workaround |
| 1241 | // use shared `chunk.modules` object to allow mutation on js side plugins |
| 1242 | __modules: chunk.modules, |
| 1243 | } |
| 1244 | : { |
| 1245 | importedAssets: new Set(), |
| 1246 | importedCss: new Set(), |
| 1247 | } |
| 1248 | } |
| 1249 | |
| 1250 | get( |
| 1251 | chunk: RenderedChunk | OutputChunk | OutputAsset, |