Skip to content

Commit

Permalink
fix(next/build): disable next-swc crash reporting temporarily (#38472)
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
  • Loading branch information
kwonoj and timneutkens authored Jul 9, 2022
1 parent 5155a88 commit 05759e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/build/swc/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { eventSwcLoadFailure } from '../../telemetry/events/swc-load-failure'
import { patchIncorrectLockfile } from '../../lib/patch-incorrect-lockfile'
import { downloadWasmSwc } from '../../lib/download-wasm-swc'
import { version as nextVersion } from 'next/package.json'
import { Telemetry } from '../../telemetry/storage'

const ArchName = arch()
const PlatformName = platform()
Expand Down Expand Up @@ -222,10 +221,11 @@ function loadNative() {
// we can't rely on explicit manual initialization as similar to trace reporter.
if (!swcCrashReporterFlushGuard) {
// Crash reports in next-swc should be treated in the same way we treat telemetry to opt out.
/* TODO: temporarily disable initialization while confirming logistics.
let telemetry = new Telemetry({ distDir: process.cwd() })
if (telemetry.isEnabled) {
swcCrashReporterFlushGuard = bindings.initCrashReporter?.()
}
}*/
}

nativeBindings = {
Expand Down

0 comments on commit 05759e0

Please sign in to comment.