Skip to content

Update Craft-Vite plugin to support Vite 6.x #103

@alexkuzmin

Description

@alexkuzmin

Is your feature request related to a problem? Please describe.

The current Craft-Vite plugin only supports Vite 4.5.3, while Vite 6.2.3 is already available. When using Vite 4.5.3, the build process reports 2 vulnerabilities due to the older version. Attempting to update only the frontend dependencies in package.json breaks compatibility with the Craft-Vite plugin, causing it to stop working.

Describe the solution you would like

Update the Craft-Vite plugin to support the latest Vite version (6.x), ensuring compatibility with newer Vite features and removing the security vulnerabilities present in older versions.

Describe alternatives you have considered

Attempted to update only the frontend dependencies in package.json, but it breaks compatibility with the Craft-Vite plugin.
Staying with the older Vite version despite the vulnerabilities
Attempting to fork and modify the plugin locally to support newer Vite versions
Creating a custom integration between Craft CMS and Vite 6.x

Additional context

Security vulnerabilities in outdated dependencies create unnecessary risk in production environments. Newer versions of Vite offer performance improvements and new features.

Current setup:

Craft-Vite plugin supporting Vite 4.5.3
Vite 6.2.3 is already available but incompatible
Build process reports 2 vulnerabilities with the current version

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