Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions packages/bundler-plugin-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,15 @@ export function sentryUnpluginFactory({
// Add plugin to emit a telemetry signal when the build starts
plugins.push({
name: "sentry-telemetry-plugin",
async buildStart() {
await sentryBuildPluginManager.telemetry.emitBundlerPluginExecutionSignal();
buildStart() {
// Technically, for very fast builds we might miss the telemetry signal
// but it's okay because telemetry is not critical for us.
// We cannot await the flush here because it would block the build start
// which in turn would break module federation builds, see
// https://github.com/getsentry/sentry-javascript-bundler-plugins/issues/816
void sentryBuildPluginManager.telemetry.emitBundlerPluginExecutionSignal().catch(() => {
// Nothing for the users to do here. If telemetry fails it's acceptable.
});
},
});

Expand Down
Loading