Skip to content

Nextjs/server modules included in the client bundle #147

Closed
@michielmetcake

Description

@michielmetcake

We're running into compiling our code to es5 because the client code includes next/server modules. This increases the bundle size unnecessary.

Example here: https://github.com/michielmetcake/tss-react/tree/main/src/test/apps/ssr

Run yarn analyze and check the client bundle.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions