update build

This commit is contained in:
Nate Kelley 2025-09-03 11:36:20 -06:00
parent bc075d4a69
commit 56aae85e0b
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 14 additions and 13 deletions

View File

@ -13,3 +13,4 @@ todos.json
mcp-todos.json
*storybook.log
storybook-static
.wrangler*

View File

@ -5,7 +5,7 @@ import { defineConfig } from 'vite';
import checker from 'vite-plugin-checker';
import viteTsConfigPaths from 'vite-tsconfig-paths';
const config = defineConfig(({ command, mode, isSsrBuild }) => {
const config = defineConfig(({ command, mode }) => {
const isBuild = command === 'build';
const isProduction = mode === 'production';
const isTypecheck = process.argv.includes('--typecheck') || process.env.TYPECHECK === 'true';
@ -14,18 +14,18 @@ const config = defineConfig(({ command, mode, isSsrBuild }) => {
return {
server: { port: 3000 },
ssr: {
noExternal: isSsrBuild ? [] : undefined,
external: isSsrBuild
? [
'@tanstack/devtools',
'@tanstack/react-devtools',
'@tanstack/react-query-devtools',
'@tanstack/react-router-devtools',
'solid-js',
]
: undefined,
},
// ssr: {
// noExternal: isSsrBuild ? [] : undefined,
// external: isSsrBuild
// ? [
// '@tanstack/devtools',
// '@tanstack/react-devtools',
// '@tanstack/react-query-devtools',
// '@tanstack/react-router-devtools',
// 'solid-js',
// ]
// : undefined,
// },
plugins: [
// this is the plugin that enables path aliases
viteTsConfigPaths({ projects: ['./tsconfig.json'] }),