We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fd7a5d commit ea5f791Copy full SHA for ea5f791
.changeset/shy-doors-walk.md
@@ -0,0 +1,5 @@
1
+---
2
+'vite-plugin-solid': patch
3
4
+
5
+Fix Vite 7+ compatibility.
src/index.ts
@@ -14,7 +14,7 @@ const runtimePublicPath = '/@solid-refresh';
14
const runtimeFilePath = require.resolve('solid-refresh/dist/solid-refresh.mjs');
15
const runtimeCode = readFileSync(runtimeFilePath, 'utf-8');
16
17
-const isVite6 = version.startsWith('6.');
+const isVite6 = +version.split('.')[0] >= 6;
18
19
/** Possible options for the extensions property */
20
export interface ExtensionOptions {
0 commit comments