7.27.0 Released: better ecosystem alignment
Babel 7.27.0 is out!
This release doesn't include any significant new feature, but it better aligns Babel's behavior with standard JavaScript and other tools.
The code printer will now also print the correct import attributes syntax by default, rather than expecting its users to explicitly enable an option for it.
We also tweaked the behavior of @babel/preset-typescript
's rewriteImportExtensions
option, to fix some differences when compared to TypeScript's --rewriteRelativeImportExtensions
.
Lastly, we updated our estree
compatibility plugin in @babel/parser
to generate AccessorProperty
nodes for accessor foo = "val"
class properties, introduced by the decorators stage 3 proposal. Note that, for legacy compatibility reasons, @babel/parser
only generates an ESTree-compatible AST for class features when the classFeatures
option of the estree
plugin is enabled.
There are multiple changes that may benefit plugin authors: you can read the whole changelog on GitHub.