Skip to content

Missing extracted css for lazily imported/hydrated components #141

@meepleek

Description

@meepleek

My setup currently uses MiniCssExtractPlugin which doesn't emit during SSR

loader: MiniCssExtractPlugin.loader,
    options: {
        emit: !ssr,
    },

This works fine except for the components that are using the lazy hydration import wrappers which load their styles only once hydration is triggered, ie. once they are hydrated. I'm doing something wrong or is this to be expected and is there a way around this while still using the import wrappers?

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