chore(start): update to alpha and fix editor image removed (#187)

* chore(start): update to alpha and fix editor image removed

* chore: fix image editor
This commit is contained in:
Aslam
2024-11-19 02:22:46 +07:00
committed by GitHub
parent 5e60b2d293
commit e5a0332ec9
19 changed files with 312 additions and 303 deletions

View File

@@ -1,36 +1,38 @@
import { defineConfig } from "@tanstack/start/config"
import tsConfigPaths from "vite-tsconfig-paths"
const is_tauri = process.env.TAURI_ENV_TARGET_TRIPLE !== undefined;
const is_tauri = process.env.TAURI_ENV_TARGET_TRIPLE !== undefined
let config = is_tauri ? defineConfig({
vite: {
envPrefix: ['VITE_', 'TAURI_ENV_*'],
build: {
target:
process.env.TAURI_ENV_PLATFORM == 'windows'
? 'chrome105'
: 'safari13',
minify: !process.env.TAURI_ENV_DEBUG ? 'esbuild' : false,
sourcemap: !!process.env.TAURI_ENV_DEBUG,
},
plugins: [
tsConfigPaths({
projects: ["./tsconfig.json"],
}),
],
},
server: {
preset: "static"
}
}) : defineConfig({
vite: {
plugins: [
tsConfigPaths({
projects: ["./tsconfig.json"],
}),
],
},
})
const config = is_tauri
? defineConfig({
vite: {
envPrefix: ["VITE_", "TAURI_ENV_*"],
build: {
target:
process.env.TAURI_ENV_PLATFORM == "windows"
? "chrome105"
: "safari13",
minify: !process.env.TAURI_ENV_DEBUG ? "esbuild" : false,
sourcemap: !!process.env.TAURI_ENV_DEBUG,
},
plugins: [
tsConfigPaths({
projects: ["./tsconfig.json"],
}),
],
},
server: {
preset: "static",
},
})
: defineConfig({
vite: {
plugins: [
tsConfigPaths({
projects: ["./tsconfig.json"],
}),
],
},
})
export default config;
export default config