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

Avoid registering babel-plugin-ember-template-compilation repeatedly #747

Merged
merged 1 commit into from Jun 30, 2022

Conversation

dfreeman
Copy link
Contributor

I'm looking at upgrading an app to Ember 3.28, and am running into issues where babel-plugin-ember-template-compilation is being registered multiple times.

It looks like the isInlinePrecompileBabelPluginRegistered utility function here is meant to act as a generic "have we already installed our plugin" guard, but it wasn't updated when the new Babel plugin was introduced for the post-modules-polyfill world.

Based on @nightire's comment on #297 (comment), I wonder if this might be what they're running into as well? Our app also has ember-engines as a dependency, and I've confirmed locally that this change eliminates the "duplicate Babel plugin" error I was seeing.

@dfreeman dfreeman force-pushed the prevent-duplicate-babel-plugins branch from 04d3e5f to 008b8d5 Compare May 26, 2022 12:03
@dfreeman
Copy link
Contributor Author

dfreeman commented Jun 7, 2022

@rwjblue any chance you'll have time this week to give this one a look? Not the end of the world if not, just planning 🙂

@ef4 ef4 merged commit 8e2ba66 into ember-cli:master Jun 30, 2022
@dfreeman dfreeman deleted the prevent-duplicate-babel-plugins branch June 30, 2022 07:51
@ef4 ef4 added the bug label Jul 4, 2022
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.

None yet

2 participants