Treemap chart
The tree map chart visualizes the contents of the selected asset, with each tile representing a single source file or folder.
Reading the tree map
The size and color of each tile represents the amount of code it contributed to the asset. The larger and redder the tile, the more code it contributed. The actual size of the file or folder is displayed next to its name and is based on the currently selected size option (Uncompressed, GZIP, or Brotli). By default, the tree map shows uncompressed sizes.
Clicking a tile opens a modal. If the tile was for a file, the modal will contain detailed information about that file. If the tile was for a folder, the modal will contain a new tree map for the files in that folder, allowing you to “zoom in” on specific areas of the asset.
The [unassigned]
tile
Occasionally, the tree map may contain a tile labeled [unassigned]
. This tile represents parts of the bundle that could not be mapped to a specific file. This are usually code comments or code added during the build process by bundler plugins without proper source map support. Some plugins may require additional configuration options to correctly generate or update source maps.
If you see a large [unassigned]
tile, it may be worth investigating the source. For that, you can use a tool like the Source Map Visualizer.