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

Scaffolding for react-dom/unstable_external-server-runtime #25482

Merged
merged 2 commits into from
Oct 15, 2022

Commits on Oct 15, 2022

  1. Scaffolding for react-dom/unstable_external-server-runtime

    Implements a new bundle type for in our build config called
    BROWSER_SCRIPT. This is intended for scripts that get delivered straight
    to the browser without needing to be processed by a bundler. (And also
    doesn't include any extra UMD crap.)
    
    Right now there's only a single use case so I didn't stress about making
    it general purpose.
    
    The use case is: a script that loads the Fizz browser runtime, and sets
    up a MutationObserver to receive instructions as HTML streams in. This
    will be an alternative option to the default Fizz behavior of sending
    the runtime down as inline script tags, to accommodate environments
    where inline script tags are not allowed.
    
    There's no development version of this bundle because it doesn't contain
    any warnings or run any user code.
    
    None of the actual implementation is in this PR; it just sets up the
    build infra.
    
    Co-authored-by: Mofei Zhang <feifei0@fb.com>
    acdlite and mofeiZ committed Oct 15, 2022
    Configuration menu
    Copy the full SHA
    054141f View commit details
    Browse the repository at this point in the history
  2. Set BUNDLE_SCRIPT's GCC output format to ES5

    This removes the automatic 'use strict' directive, which we don't need.
    acdlite committed Oct 15, 2022
    Configuration menu
    Copy the full SHA
    6c1485e View commit details
    Browse the repository at this point in the history