`target` could be renamed here, so I'd recommend using `vectorSource` instead.