Chop the basil leaves and onion.
Heat olive oil in a pan and sauté the onion.
Add the rice and sauté until it turns translucent.
Pour in the white wine and simmer.
Gradually add warm vegetable stock while stirring and let it cook.
When the rice is cooked to the right texture, add basil pesto and butter and mix well.
Finish by adding Parmesan cheese.