Skip to content

Recommend using oxc.plugins.styledComponents on Vite #998

@sapphi-red

Description

@sapphi-red

Oxc Transformer supports styled-components transform and it should be performant and easier to use than @vitejs/plugin-react-swc + @swc/plugin-styled-components.
Example: https://stackblitz.com/edit/vitejs-vite-jx3j3omx?file=src%2FApp.tsx,vite.config.ts&terminal=dev

Note that cssProp and topLevelImportPaths options are not implement yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions