This content originally appeared on Babel Blog and was authored by Babel Team
Babel 7.14.0 is out!
This release enables class fields and private methods by default (they were promoted to Stage 4 during the recent April TC39 meeting!) and adds brand checks for private fields and static class blocks to @babel/preset-env
's shippedProposals
option.
We added support for Stage 1 async do expressions (using @babel/plugin-proposal-async-do-expressions
), which extends the Stage 1 do expression proposal.
Thanks to Sosuke Suzuki and Pig Fang, Babel can now handle TypeScript 4.3 features. @babel/parser
also has a new option to correctly parse TypeScript declaration files.
Finally, we introduced a new importInterop: node
option to make it easier to produce dual modules by compiling ECMAScript imports to CommonJS that follow Node.js semantics.
You can read the whole changelog on GitHub.
This content originally appeared on Babel Blog and was authored by Babel Team
Babel Team | Sciencx (2021-04-29T06:00:00+00:00) 7.14.0 Released: New class features enabled by default, TypeScript 4.3, and better CommonJS interop. Retrieved from https://www.scien.cx/2021/04/29/7-14-0-released-new-class-features-enabled-by-default-typescript-4-3-and-better-commonjs-interop/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.