ember-cli-babel icon indicating copy to clipboard operation
ember-cli-babel copied to clipboard

@babel/polyfill 7.4.0+ has been deprecated

Open xg-wang opened this issue 5 years ago • 10 comments

warning ember-cli-babel > @babel/[email protected]: 🚨 As of Babel 7.4.0, this
package has been deprecated in favor of directly
including core-js/stable (to polyfill ECMAScript
features) and regenerator-runtime/runtime
(needed to use transpiled generator functions):

  > import "core-js/stable";
  > import "regenerator-runtime/runtime";

xg-wang avatar Aug 23 '19 23:08 xg-wang

Thanks for reporting. Definitely need to get this fixed.

rwjblue avatar Dec 06 '19 14:12 rwjblue

@rwjblue I've also just been hit by this issue in our app. Object.fromEntries is not polyfilled by @babel/polyfill. This is because @babel/polyfill (now deprecated) ships with core-js 2.x (2.x is deprecated) and Object.fromEntries only ships from 3.x.

I'm happy to try and put together a PR if it's just a matter of switching out dependencies, and tweaking the build pipeline?

patocallaghan avatar Jul 29 '20 10:07 patocallaghan

@patocallaghan - I haven't really dug into this so I'm not sure if that is all that we need to do, but it seems reasonable to me and help (even just researching) is absolutely welcome.

rwjblue avatar Jul 29 '20 12:07 rwjblue

Okay thanks, I'll see if I can dig in at some stage this week

patocallaghan avatar Jul 29 '20 12:07 patocallaghan

Logged https://github.com/babel/broccoli-babel-transpiler/issues/197 as @babel/polyfill is used by ember-cli-babel and broccoli-babel-transpiler

SergeAstapov avatar Jan 13 '21 03:01 SergeAstapov

https://github.com/babel/broccoli-babel-transpiler/pull/191 removed the polyfill from broccoli-babel-transpiler already, just hasn't been released yet (it'll be 8.0.0).

rwjblue avatar Jan 13 '21 23:01 rwjblue

great news @rwjblue! sorry for churn, didn't check latest master

SergeAstapov avatar Jan 13 '21 23:01 SergeAstapov

Now this is being blocked by babel/broccoli-babel-transpiler#200

SergeAstapov avatar May 22 '21 03:05 SergeAstapov

Checking in here, it looks like the blocker has been merged now 🥳

cincodenada avatar Jul 07 '21 22:07 cincodenada

What was the outcome of this? How do we restore the Object.fromEntries polyfill?

john-griffin avatar Feb 21 '22 04:02 john-griffin

Going to close this as polyfill support was removed in v8.

bertdeblock avatar Jan 28 '23 09:01 bertdeblock