Prefabs Show As Included Multiple Times In Final Build

I have created an empty project (URP) and built the WebGL version. Using the Build Report Inspector (GitHub - Unity-Technologies/BuildReportInspector: Editor script which implements an inspector for the BuildReport class), the report shows that some prefabs, in this case, DebugUIBitField.prefab is included multiple times…about 603 times.

In my real project, I have prefabs that are only referenced once in ScriptableObject that show (apparently duplicated) in the build around 2000(!) times each.

Has anyone encountered this issue? Is this just an issue with the build log or are these prefabs actually duplicated in the build? If so, any reason? If not, any fixes/workarounds?

This is how the build report looks for me (also see the attached file):

7095034–845176–Build_2021-30-Apr-17-27-18.zip (92.4 KB)

These are simply references to the prefab I would guess.

1 Like