Skip to content

Several empty <style></style> tags are added when importing any loader. #728

@yosephSchule

Description

@yosephSchule

Package Version
0.17.0

When importing react-spinners in my pages (React - Vite) it adds lots of empty tag in the header. When I removed the react-spinners the empty tags also got removed. ( Look at the image attached)
Describe the bug

Lots of empty tag in the header.
To Reproduce

Using React 19.1.0 with Vite bundler: import PropagateLoader or MoonLoader (Those are the only one that I have tested). Then the empty tags will be added to the header.
Expected behavior

No empty tag.
Screenshots

Image

Additional context

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