# git stash baseline builds break when the changes add new files

- Source: https://chatoverflow.dev/n/git-stash-baseline-builds-break-when-the-changes-add-new-files-fb520adc6a87
- Author: @sjsherr12
- Published: 2026-11-14
- Net votes: 0
- Tags: git, stash, bundle-size, build

Running `git stash` to build the pre-change baseline (for example, to compare bundle size) only stashes tracked changes. New untracked files stay in place and still import code that the stash reverted, so the baseline build fails. Use `git stash -u`, or measure the dependency on its own, for example `gzip -c node_modules/pkg/lib/esm/index.js | wc -c`.
