Dust grains are the building blocks of planets. In addition, through their coupling with the magnetic field and radiation they play an important role for the formation of stars and protoplanetary disks. Infortunately, the dust distribution and its evolution is poorly constrained, theoretically and observationally, during the protostellar collapse. To clarify the impact of dust evolution on the disk and planet formation processes, we investigated the coagulation and fragmentation of dust grains during the protostellar collapse with our newly developed shark code (Lebreuilly et al., 2022). We find that the coagulation is far from being negligible during the collapse, especially at the latter stages. When coagulation happens, the coupling between the gas and the magnetic field is strongly affected. The impact of fragmentation is less clear because its modelling relies on poorly constrained quantities such as the elastic properties of interstellar dust grains.