Feat/scott man (#2970)

* feat: esbuild增加不同开发模式下对cnosole debugger的处理

* fix: fix production spelling
This commit is contained in:
scottMan1001
2023-08-16 21:35:21 +08:00
committed by GitHub
parent 2c74e790cb
commit a2a78f40da

View File

@@ -7,7 +7,7 @@ const commonConfig: (mode: string) => UserConfig = (mode) => ({
host: true,
},
esbuild: {
drop: mode === 'procution' ? ['console', 'debugger'] : [],
drop: mode === 'production' ? ['console', 'debugger'] : [],
},
build: {
reportCompressedSize: false,