Skip to content

Commit

Permalink
chore(deps): upgrade solid-start to 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
urish committed Feb 29, 2024
1 parent 314b074 commit 1082145
Show file tree
Hide file tree
Showing 5 changed files with 3,292 additions and 3,769 deletions.
23 changes: 23 additions & 0 deletions app.config.ts
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
],
};
},
});
Loading

0 comments on commit 1082145

Please sign in to comment.