yoast-components icon indicating copy to clipboard operation
yoast-components copied to clipboard

Update babel preset

Open igorschoester opened this issue 6 years ago • 0 comments

  • [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

igorschoester avatar Feb 06 '19 13:02 igorschoester