-
Notifications
You must be signed in to change notification settings - Fork 46.7k
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
[Scheduler] Add "combined" www build #16659
Conversation
The Scheduler module in www is loaded before most of our other infra: too early to conditionally load a separate build in production versus development. Which means we're currently sending both a prod and dev bundle to every single user. We should fix this on the Facebook infra side, but in the meantime, this updates the build script to generate a new type of bundle, `FB_WWW_COMBINED`, which preserves __DEV__ conditions.
I should add more context — we don't actually use DEV checks in the Scheduler package currently. We could load the dev bundle in both dev and prod. However, that might not always be the case, so I've opened this PR as a suggestion for how to handle this if it comes up in the future. |
Details of bundled changes.Comparing: f705e2b...e1aefad scheduler
|
f5e82c5
to
e1aefad
Compare
Maybe we should just add a lint check that fails if we ever add a |
bundleType === FB_WWW_PROD || | ||
bundleType === FB_WWW_PROFILING | ||
) { | ||
if (bundleType === FB_WWW_COMBINED) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove the other two bundleTypes here (FB_WWW_DEV and FB_WWW_PROD)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the purpose of the combined bundle is to replace the dev and prod bundles with a single bundle that includes both code paths
Our infra currently doesn't support loading a separate profiling build of Scheduler. Until that's fixed, the recommendation is to load a single build and gate the profiling feature behind a flag. Alternative to facebook#16659
Our infra currently doesn't support loading a separate profiling build of Scheduler. Until that's fixed, the recommendation is to load a single build and gate the profiling feature behind a flag. Alternative to facebook#16659
Our infra currently doesn't support loading a separate profiling build of Scheduler. Until that's fixed, the recommendation is to load a single build and gate the profiling feature behind a flag. Alternative to facebook#16659
Our infra currently doesn't support loading a separate profiling build of Scheduler. Until that's fixed, the recommendation is to load a single build and gate the profiling feature behind a flag. Alternative to #16659
Outdated. Worked around this in www. |
The Scheduler module in www is loaded before most of our other infra: too early to conditionally load a separate build in production versus development. Which means we're currently sending both a prod and dev bundle to every single user.
We should fix this on the Facebook infra side, but in the meantime, this updates the build script to generate a new type of bundle,
FB_WWW_COMBINED
, which preserves DEV conditions.