What Babel 7 does and doesn't do
19th Jul 2019
Babel 7 will not transpile any of the following out of the box:
- Object.assign
- Native Promises
- String helper functions such as string.startsWith, or string.includes
- Map
- Set
If you want to use any of these, you should either bring in your own polyfills for what you need, or you should include corejs with Babel.
Babel 7 will transpile the following out of the box:
- Object destructuring
- Spread Syntax
- Async and Await keywords
- Default parameters
- For ... of
There are plugins for each of these but they do not appear to be necessary. It looks like Babel is trying to steer towards transpiling syntax and keyword features, and not functions or objects, which need to be polyfilled.