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

Fix compatibility with ember-auto-import. #392

Merged
merged 1 commit into from
Mar 18, 2021

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Mar 18, 2021

[email protected] accidentally broke compatibility with ember-auto-import when it fixed buildBabelOptions to only return custom babel config not broccoli-babel-transpiler config.

This fixes that compatiblity in the case where babelAddon.buildBabelOptions() is called, but still preserves the ability to get either the broccoli-babel-transpiler config or the @babel/core config.

Fixes embroider-build/ember-auto-import#359
Fixes #389
Related to embroider-build/ember-auto-import#362

[email protected] accidentally broke compatibility with
ember-auto-import when it fixed `buildBabelOptions` to only return
custom babel config **not** broccoli-babel-transpiler config.

This fixes that compatiblity in the case where
`babelAddon.buildBabelOptions()` is called, but still preserves the
ability to get _either_ the broccoli-babel-transpiler config _or_ the
`@babel/core` config.
@rwjblue rwjblue added the bug label Mar 18, 2021
@rwjblue rwjblue merged commit cc65ea5 into master Mar 18, 2021
@rwjblue rwjblue deleted the make-buildBabelOptions-backwards-compat branch March 18, 2021 20:49
@kpfefferle
Copy link

Thanks @rwjblue, this seems to have fixed the projects I had that were failing #386! 🎉

@rwjblue
Copy link
Member Author

rwjblue commented Mar 19, 2021

Thanks for confirming @kpfefferle! I didn't realize this was also the cause there, but it definitely makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dependencies in .ts files not included with latest ember-cli-babel 7.24.0+ Breaks everything
2 participants