Does Vite Plus support Solid 2.0? #2629
|
Solid 2.0 now has a release candidate. Does Vite+ support Solid 2.0 RC or when it is officially released? |
Replies: 1 comment 1 reply
|
Vite+ itself should not require Solid-specific support: it provides the Vite toolchain, while Solid compilation is handled by the Solid Vite plugin. However, A minimal configuration should remain the usual Vite setup: import { defineConfig } from "vite";
import solid from "@solidjs/vite-plugin";
export default defineConfig({
plugins: [solid()],
});Vite+ currently expects Vite 8 or newer, and the Solid 2 plugin is also being developed against Vite 8. Therefore the toolchain versions appear compatible, but since both Solid 2 and its plugin are prereleases, I would treat this as experimental until the Solid plugin publishes a stable version or Vite+ adds an official compatibility test. |
Vite+ itself should not require Solid-specific support: it provides the Vite toolchain, while Solid compilation is handled by the Solid Vite plugin.
However,
vite-plugin-solid2.x currently declaressolid-js: ^1.7.2, so that package line does not officially support Solid 2. For Solid 2 RC, use the new@solidjs/vite-plugin3.x prerelease intended for Solid 2, rather than forcing Solid 2 throughvite-plugin-solid2.x.A minimal configuration should remain the usual Vite setup:
Vite+ currently expects Vite 8 or newer, and the Solid 2 plugin is also being dev…