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

Use ternary instead of if statement in module export #40

Closed
wants to merge 1 commit into from

Conversation

josemarluedke
Copy link

@josemarluedke josemarluedke commented Apr 14, 2022

This fixes an issue we are seeing when building apps in production mode. This issue was introduced in version 1.0.3 with PR #35.

Before this change, when building in production mode, we would not get the config from the app:

Screen Shot 2022-04-13 at 5 48 24 PM

Screen Shot 2022-04-13 at 5 48 14 PM

Now with this change, we get the config in production and all other modes:

Screen Shot 2022-04-13 at 5 43 24 PM

Paired with @eugenioenko.

@Windvis
Copy link
Contributor

Windvis commented Apr 14, 2022

@josemarluedke Could you cross-post this issue to the Embroider repo? Sounds like there might be an underlying issue that we would want to look into over there as well?

@mansona
Copy link
Owner

mansona commented Apr 22, 2022

Hey thanks for your contribution @josemarluedke 🎉

As it turns out I got nerd sniped while pairing with @pichfl and we fixed this problem, along with the issue with duplication of configs 💪

You can take a look here #41

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

Successfully merging this pull request may close these issues.

3 participants