Scripts: Missing corejs version in Babel config #15138
Labels
[Tool] Babel preset
/packages/babel-preset-default
[Tool] WP Scripts
/packages/scripts
[Type] Bug
An existing feature does not function as intended
Describe the bug
I am trying to use
@wordpress/scripts
for unit tests. Still running into #13364, but there's also another issue when runningwp-scripts test-unit-js
:Indeed,
@wordpress/babel-preset-default
usesuseBuiltIns
when running tests, but does not specify thecorejs
version:gutenberg/packages/babel-preset-default/index.js
Lines 20 to 21 in 354c1ff
To reproduce
Steps to reproduce the behavior:
wp-scripts
in your project.Expected behavior
The Babel config should add the
corejs
option in that scenario.The text was updated successfully, but these errors were encountered: