Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
keep console.log() when serving webapp
the removal of console and debugger statements by esbuild even when not building for production seems to be a regression, as these were definitely working in the past. this change uses the command parameter to configure esbuild to either keep or indeed remove the respective statements. they are only kept if command is not "serve". to avoid having to indent everything in defineConfig() by one block, the return statement and closing curly brace were added "inline".
- Loading branch information