This PR updates babel-preset-kyt to ensure that @babel/preset-typescript appears last in the presets array, and thus, is applied first (docs).
This fixes an issue in which Babel could fail to transpile certain TypeScript syntax, such as the TypeScript “constructor shorthand” syntax, when using babel-preset-kyt v1.1.20.
relates to #1135 blocks nytimes/news#5565
Description
This PR updates
babel-preset-kyt
to ensure that@babel/preset-typescript
appears last in thepresets
array, and thus, is applied first (docs).This fixes an issue in which Babel could fail to transpile certain TypeScript syntax, such as the TypeScript “constructor shorthand” syntax, when using
babel-preset-kyt
v1.1.20.How to Review
yarn link
a pre-release version ofbabel-preset-kyt
created from the contents of this PRyarn test
exits without an error ("The resulting code appears to be OK:")