ESP32 Stack configuration

Hi,
I am using Arduino framework on a project with ESP32.
Is there a way to configure the stack size allocated to the main task (running the main loop)?
Thanks for your help on this basic question.
mch