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

refactor: change isProduction check strategy #1793

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

colenso
Copy link

@colenso colenso commented Feb 8, 2024

In this PR I aim to essentially change the way Embroider checks whether we're building for production. In an EmberApp there's a isProduction which basically does a environment === 'production'. This shouldn't affect anything really.
It's just that we aim to override this isProduction in our app because we have a different notion of isProduction. We have environment === 'staging', environment === 'native-app' for which we still want Embroider to run it's production optimization logic.

@colenso
Copy link
Author

colenso commented Feb 8, 2024

@mansona Can you please have a look at these changes? Maybe I shouldn't make this PR against main?

@void-mAlex
Copy link
Collaborator

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.

None yet

2 participants