Threejs not working for RSPACK , was working fine with PARCEL

Hi,
Threejs not seems to work with rspack on local but is working fine on PARCEL.