Anno 2016 I used this to program an ESP8266 through a Teensy - i think that should work for a ESp32, too.
(But have not tried it)

You have to comment out the "Flexiboard" things: