Turns out @babel/preset-typescript always has to be included when calling transformSync from babel (it cannot be included in a later call). Due to that I made all transformSync calls into a wrapper call that uses a required set of plugins and presets.
Summary
Turns out
@babel/preset-typescript
always has to be included when callingtransformSync
frombabel
(it cannot be included in a later call). Due to that I made alltransformSync
calls into a wrapper call that uses a required set of plugins and presets.Fixes
6642
Test plan