-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): upgrade solid-start to 0.6.0
- Loading branch information
Showing
5 changed files
with
3,292 additions
and
3,769 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import { defineConfig } from '@solidjs/start/config'; | ||
import suidPlugin from '@suid/vite-plugin'; | ||
import child from 'child_process'; | ||
|
||
const commitHash = child.execSync('git rev-parse --short HEAD').toString(); | ||
|
||
export default defineConfig({ | ||
vite() { | ||
return { | ||
define: { | ||
__COMMIT_HASH__: JSON.stringify(commitHash.trim()), | ||
__BUILD_TIME__: JSON.stringify(new Date().toISOString()), | ||
}, | ||
|
||
plugins: [ | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
suidPlugin() as any, // types aren't compatible with vite 5, but it still works | ||
], | ||
}; | ||
}, | ||
}); |
Oops, something went wrong.