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

Avoid duplicate work being done in RSC server plugin #45

Merged
merged 1 commit into from
Mar 5, 2024

Commits on Mar 5, 2024

  1. Avoid duplicate work being done in RSC server plugin

    The RSC server loader already collects all the server references. So we
    don't need to do the same work again in the plugin. Instead, we can just
    read them from the provided map.
    
    This should simplify adding support for inline `'use server'` references
    to the plugin.
    
    BREAKING CHANGE: The `serverReferencesMap` is now a required option of
    `createWebpackRscServerLoader`. In addition, it also needs to be passed
    to `createWebpackRscSsrLoader` (required for server actions that are
    imported from client components).
    unstubbable committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    532d9a0 View commit details
    Browse the repository at this point in the history