Skip to content

Vite 8 support #185

@AFCMS

Description

@AFCMS

On install, missing peer dependency:

 WARN  Issues with peer dependencies found
.
└─┬ @preact/preset-vite 2.10.3
  ├── ✕ unmet peer vite@"2.x || 3.x || 4.x || 5.x || 6.x || 7.x": found 8.0.0
  └─┬ vite-prerender-plugin 0.5.12
    └── ✕ unmet peer vite@"5.x || 6.x || 7.x": found 8.0.0

On dev server start, a deprecation warning is reported:

20:50:16 [vite] warning: `esbuild` option was specified by "vite:preact-jsx" plugin. This option is deprecated, please use `oxc` instead.
20:50:16 [vite] (client) Re-optimizing dependencies because lockfile has changed

  VITE v8.0.0  ready in 177 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
  ➜  press h + enter to show help

To reproduce:

pnpm create vite@latest --template preact-ts --immediate --no-interactive vite-8-preact

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