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

Add a module map option to the Webpack Flight Client #24629

Merged
merged 1 commit into from
May 27, 2022

Commits on May 27, 2022

  1. Add a module map option to the Webpack Flight Client

    On the server we have a similar translation map from the file path that the
    loader uses to the refer to the original module and to the bundled module ID.
    
    The Flight server is optimized to emit the smallest format for the client.
    However during SSR, the same client component might go by a different
    module ID since it's a different bundle than the client bundle.
    
    This provides an option to add a translation map from client ID to SSR ID
    when reading the Flight stream.
    
    Ideally we should have a special SSR Flight Client that takes this option
    but for now we only have one Client for both.
    sebmarkbage committed May 27, 2022
    Configuration menu
    Copy the full SHA
    2f9a4b6 View commit details
    Browse the repository at this point in the history