fix(vite): hide source map from client (#905)

* fix(vite): hide source map from client

* refactor(client/package.json): change dev to development for uniformity with api
This commit is contained in:
Danny Avila 2023-09-10 03:19:19 -04:00 committed by GitHub
parent 3410a8033d
commit 00b9138aa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -26,7 +26,7 @@ export default defineConfig({
plugins: [react(), sourcemapExclude({ excludeNodeModules: true })],
publicDir: './public',
build: {
sourcemap: true,
sourcemap: process.env.NODE_ENV === 'development',
outDir: './dist',
rollupOptions: {
// external: ['uuid'],