emberjs / ember-cli-babel

Ember CLI plugin for Babel
MIT License
153 stars 119 forks source link

[QUEST] v8 Release #453

Closed bertdeblock closed 1 year ago

bertdeblock commented 1 year ago
kategengler commented 1 year ago

from @rwjblue in Discord

rwjblue β€” 09/16/2022 Agree There’s a non trivial amount of cleanup we should do though Like bumping the broccoli-Babel-transpiler version Changing poly fill support around (removing it basically)

ef4 commented 1 year ago

Also just noticed that broccoli-babel-transpiler has @babel/core in dependencies. That means we should also change and release broccoli-babel-transpiler to either use a peerDep or accept babel itself as an argument when you create the broccoli node.

ef4 commented 1 year ago

(I can't edit the description above, so I'm rewriting it here with updates.)

bertdeblock commented 1 year ago

@ef4 For the broccoli-babel-transpiler update, which option do you prefer / is best in this case?

bertdeblock commented 1 year ago

Also, does includePolyfill support need to be dropped without a replacement?

bertdeblock commented 1 year ago

Created PRs for the remaining issues. Hope I understood everything correctly πŸ˜„.

Probably need some guidance on the "Remove includePolyfill support" issue.

ef4 commented 1 year ago

Also, does includePolyfill support need to be dropped without a replacement?

babel has deprecated the polyfill and tells you the replacement is to add import "core-js/stable" yourself: https://babeljs.io/docs/en/babel-polyfill

This probably belongs in changelog and in any how-to-upgrade doc that we may write for this major release.

rwjblue commented 1 year ago

I released https://github.com/babel/broccoli-babel-transpiler/releases/tag/v8.0.0-beta.1 so we can start updating here a bit easier

bertdeblock commented 1 year ago

πŸ‘ I'll try to fix the broccoli-babel-transpiler update here asap.

ef4 commented 1 year ago

We're going to need to document what addon authors are supposed to do. They traditionally must have ember-cli-babel in dependencies and therefore they bring their own babel into app builds. The way to reproduce that after this change is for addons to @babel/core in dependencies. But it's probably better for them to put it into peerDependencies (and devDependencies).

bertdeblock commented 1 year ago

After the transpiler PR, I can look into writing an upgrade guide for apps and addons.

ef4 commented 1 year ago

I said about "it's probably better for them to put it into peerDependencies", but after thinking about it, the less disruptive change is to put @babel/core into dependencies. That is equivalent to how things already worked, with every addon potentially bringing its own babel. We don't need to rock that boat any harder, the longer-term plan is for them to get to v2 addons and then they don't bring ember-cli-babel at all.

JackHowa commented 1 year ago

Excited to see babel polyfills removed πŸ‘

bertdeblock commented 1 year ago

v8 is released.

ef4 commented 1 year ago

Thank you @bertdeblock!