I try to use @parcel/source-map to implement remapping like https://github.com/ampproject/remapping for efficiency, but it seems that It generates wrong sourcemap. You can see the demo https://github.com/hardfist/remap here