Skip to content

[TypeScript]: plugin's output type is wrong #100

@sumanbh

Description

@sumanbh

The plugin function doesn't have an explicit return type. This is causing type errors in new versions of vite after a type change to envDir.

Image

Fix

Explicitly add a return type of Plugin[] to styleXVitePlugin

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