Revert "DEV: makes babel configuration consistent in all cases (#10884)" (PR #10907)

This reverts commit c39dc9157c4668c565987d2ca63e8ad8377ff409.

GitHub