Skip to content

[ENHANCEMENT] Update ember-cli-babel to v8 in app and addon blueprints#10141

Closed
bertdeblock wants to merge 1 commit intoember-cli:masterfrom
bertdeblock:update-ember-cli-babel-in-blueprints
Closed

[ENHANCEMENT] Update ember-cli-babel to v8 in app and addon blueprints#10141
bertdeblock wants to merge 1 commit intoember-cli:masterfrom
bertdeblock:update-ember-cli-babel-in-blueprints

Conversation

@bertdeblock
Copy link
Copy Markdown
Member

@bertdeblock bertdeblock commented Jan 27, 2023

Mainly opening to see how CI will respond.

Closes #9933.
Closes #9934.
Closes emberjs/ember-cli-babel#453.

@bertdeblock
Copy link
Copy Markdown
Member Author

embroider-build/embroider#1343 should fix the failing Embroider runs.

@bertdeblock bertdeblock force-pushed the update-ember-cli-babel-in-blueprints branch from 25c04f1 to 35bef7d Compare August 18, 2023 15:41
@bertdeblock bertdeblock marked this pull request as ready for review August 18, 2023 15:43
@bertdeblock bertdeblock force-pushed the update-ember-cli-babel-in-blueprints branch from 35bef7d to d7db292 Compare August 18, 2023 15:57

// Addons must bring in their own version of `@babel/core`
// when using `ember-cli-babel` >= v8.
contents.dependencies['@babel/core'] = contents.devDependencies['@babel/core'];
Copy link
Copy Markdown
Contributor

@NullVoxPopuli NullVoxPopuli Aug 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why a dependencies entry?
shouldn't this be a peer(+dev), letting the app control the version?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bertdeblock provided some context here: https://github.com/babel/ember-cli-babel/blob/master/UPGRADING.md#upgrade-path-for-addons

tl;dr: v1 addons already don't care what the app is doing, as they compile themselves

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added that link as well over in #10349.

@bertdeblock
Copy link
Copy Markdown
Member Author

ember-cli-babel was accidentally bumped to v8 in the blueprints without adding the @babel/core dependency.
Closing this PR in favour of this bug fix => #10349.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[QUEST] v8 Release peer errors with app blueprint

2 participants