Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

bertdeblock
Copy link
Contributor

@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
Contributor 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
@@ -56,6 +56,11 @@ module.exports = {
contents.dependencies['ember-cli-babel'] = contents.devDependencies['ember-cli-babel'];
delete contents.devDependencies['ember-cli-babel'];

// 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
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
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
Contributor 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
Contributor 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