The trick is to freeze it in water.
I coarsely chop basil and pack it in ice cube trays before covering with water and freezing. When I’m ready to unleash the basil flavour, I pull out a cube or two. I either pop them whole into soups, stews, or sauces, or melt the cube to use just the basil.
It smells, and tastes, incredibly fresh!