Wash the basil leaves thoroughly and remove excess moisture.
Finely chop the onion.
Mince the garlic.
Heat olive oil in a pan and sauté the garlic and onion.
Add the rice and stir until it becomes translucent.
Pour in the white wine and let the alcohol evaporate.
Add vegetable stock or water gradually while cooking the rice.
When the rice is almost done, season with basil pesto, salt, and pepper.
Finish by adding Parmesan cheese and butter.