Function server_components_assert

Source
pub fn server_components_assert(
    filename: FileName,
    config: Config,
    app_dir: Option<PathBuf>,
) -> impl Visit
Expand description

Returns a visitor to assert react server components without any transform. This is for the Turbopack which have its own transform phase for the server components proxy.

This also returns a visitor instead of fold and performs better than running whole transform as a folder.