Skip to content

Commit

Permalink
chore: turn off sourcemaps during build
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanCassiere committed Sep 11, 2024
1 parent be16e62 commit ebfccf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const commitHash = cp
const APP_VERSION = `${packageJson.version}-${commitHash}`;

// https://vitejs.dev/config/
export default defineConfig(() => {
export default defineConfig(({ command }) => {
return {
plugins: [
TanStackRouterVite({
Expand Down Expand Up @@ -47,7 +47,7 @@ export default defineConfig(() => {
port: 3000,
},
build: {
sourcemap: true,
sourcemap: command === "serve",
},
define: {
"import.meta.env.APP_VERSION": JSON.stringify(APP_VERSION),
Expand Down

0 comments on commit ebfccf0

Please sign in to comment.