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

Change fallback behaviour for __MCOND and fix dependency for runtime #142

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JakeLane
Copy link
Contributor

@JakeLane JakeLane commented Oct 22, 2024

Motivation

We need a safe rollout when globalThis.__MCOND is not defined (if we mess something up on the control branch of the rollout). We also have an issue where some dependencies don't get loaded correctly when prod mode is on.

Changes

Two major changes here:

  • Check if globalThis.__MCOND exists when configured, so we can have a safe rollout when feature flag is disabled
  • Fix the dependency in scope hoisting, as we don't pick up the correct dep

I also added a new integration test and fixed some tests not using the correct data. This can probably allow some refactoring in the style of the new test. Dev mode is broken so I skip the test I fixed (as it's now red).

Checklist

  • Existing or new tests cover this change

@JakeLane JakeLane requested review from marcins, tomgasson and a team October 22, 2024 05:48
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.

1 participant