Skip to content

[Feature] Support Vite 8 and update react compiler scaffold #419

@SiddharthPant

Description

@SiddharthPant

Which project does this relate to?

Create Tanstack App

Describe the feature

Vite 8 has been released and since its using rolldown under the hood, the config for react-compiler has been changed. It now requires a rolldown plugin. So instead of supplying babel preset to viteReact you will supply preset to rolldown plugin. All these changes are documented in this link shared in Vite 8 official docs: https://github.com/vitejs/vite-plugin-react/releases/tag/plugin-react%406.0.0

Additional context

This also affects vite-plus compatibility since its starter vp create tries to replace vite with latest v8 and results in a broken starter template.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions