Skip to content

Doesn't work with Vite 3 #52

@brillout

Description

@brillout
  • Check if updating to the latest Preact version resolves the issue

Describe the bug

Preact doesn't work with Vite 3 (3.0.0-alpha.9).

To Reproduce

See https://github.com/brillout/preact-vite3.

CodeSandbox: https://codesandbox.io/s/github/brillout/preact-vite3

Expected behavior

Preact seems to inject a require statement which it shouldn't because Vite 3 is now ESM by default.

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