Disable sourcemaps in dev

This commit is contained in:
Jamie Kyle 2024-02-06 17:50:20 -08:00 committed by GitHub
parent fe14333e74
commit 748cb1abc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,7 +14,8 @@ const isProd = process.argv.some(argv => argv === '-prod' || argv === '--prod');
const nodeDefaults = {
platform: 'node',
target: 'esnext',
sourcemap: isProd ? false : 'inline',
// Disabled even in dev because the debugger is broken
sourcemap: false,
// Otherwise React components get renamed
// See: https://github.com/evanw/esbuild/issues/1147
keepNames: true,