Open bendemboski opened 2 years ago
Seem like #428 (landed in v7.26.10
) was sort of related (although didn't fix presence of this warning)
Hmmm, why didn't #428 fix the warning?
preset-env
. Similar-enough that it's easy to assume they're the same (I did, and was confused!). I suspect this is just an ordering issue? We get options from preset-env last in getBabelOptions
:Ya, makes sense @chriskrycho. I think based on your summary, that we could fix this warning too (without a massive refactoring in logic)?
I think so? My first-pass though when looking at the code was that we just need to get the preset env config earlier up and pass any relevant options from it—mostly just "loose"
, I think?—down into the various _add*Plugin(s)
calls.
Running an app or addon with what is currently the latest
ember-cli-babel
and@babel/preset-env
(ember-cli-babel@7.26.6
and@babel/preset-env@7.15.6
) results in this warning:Should we be adding that option to the config anytime this block runs?