Unverified Commit 05759e09 authored by OJ Kwon's avatar OJ Kwon Committed by GitHub

fix(next/build): disable next-swc crash reporting temporarily (#38472)

Co-authored-by: 's avatarTim Neutkens <tim@timneutkens.nl>
parent 5155a88a
......@@ -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()
......@@ -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 = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment