I was making an artificer (from the May 2019 UA) who has a dagger with the Returning Weapon infusion. I planned on using the arcane weapon spell with it, but I am unsure if it works.
Arcane weapon states:
You channel arcane energy into one simple or martial weapon you’re holding, and choose one damage type: acid, cold, fire, lightning, poison, or thunder. Until the spell ends, you deal an extra 1d6 damage of the chosen type to any target you hit with the weapon.
This spell seems to work with ranged weapons such as bows and melee weapons, but would it work with a thrown weapon such as a dart or javelin?