We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f65255 commit afca710Copy full SHA for afca710
2 files changed
.changeset/lemon-moles-type.md
@@ -0,0 +1,5 @@
1
+---
2
+"@faststats/sourcemap-uploader-plugin": patch
3
4
+
5
+fix: use random uuid as fallback build_id
packages/bundler-plugin/src/index.ts
@@ -462,7 +462,10 @@ const unpluginInstance = createUnplugin<BundlerPluginOptions>(
462
};
463
}
464
465
- const buildId = options.buildId ?? getGitCommitHashSync() ?? "unknown";
+ const buildId =
466
+ options.buildId ??
467
+ getGitCommitHashSync() ??
468
+ `random_${crypto.randomUUID()}`;
469
const globalKey = options.globalKey ?? "__SOURCEMAPS_BUILD__";
470
const injection = createGlobalInjection(globalKey, buildId);
471
0 commit comments