yoast-components
yoast-components copied to clipboard
Update babel preset
- [x] I've read and understood the contribution guidelines.
- [x] I've searched for any related issues and avoided creating a duplicate issue.
Please give us a description of what happened.
The babel preset used is es2015 (and react in the .babelrc, not in the webpack config). While in the plugin the more modern env is used. See: https://babeljs.io/docs/en/env
Please describe what you expected to happen and why.
To have similar usage of Babel in the standalone and the plugin.
How can we reproduce this behavior?
Technical info
- yoast-components version: v4.19.0