Browse Source

Merge pull request #2561 from cheahjs/feat/generate-source-maps

feat: generate production source maps to assist debugging
Timothy Jaeryang Baek 11 months ago
parent
commit
e9c8341d38
1 changed files with 3 additions and 0 deletions
  1. 3 0
      vite.config.ts

+ 3 - 0
vite.config.ts

@@ -20,6 +20,9 @@ export default defineConfig({
 	define: {
 		APP_VERSION: JSON.stringify(process.env.npm_package_version)
 	},
+	build: {
+		sourcemap: true
+	},
 	worker: {
 		format: 'es'
 	}