/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
const traceUnhandled = {
  async initialize() {
    if (!process.argv.includes("--trace-unhandled") && !process.env.MATTER_TRACE_UNHANDLED) {
      return;
    }
    const { register } = await import("trace-unhandled");
    register();
  }
};
export {
  traceUnhandled
};
//# sourceMappingURL=trace-unhandled.js.map
