mirror of https://github.com/buster-so/buster.git
update build
This commit is contained in:
parent
bc075d4a69
commit
56aae85e0b
|
@ -13,3 +13,4 @@ todos.json
|
|||
mcp-todos.json
|
||||
*storybook.log
|
||||
storybook-static
|
||||
.wrangler*
|
|
@ -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'] }),
|
||||
|
|
Loading…
Reference in New Issue