Skip to content

Commit 6be4e96

Browse files
committed
fix angular build
1 parent 9513c65 commit 6be4e96

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

packages/plugin-angular/src/lib/bugsnag-error-handler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { ErrorHandler, VERSION } from '@angular/core'
2-
import Bugsnag, { Client } from '@bugsnag/js'
2+
import type { Client } from '@bugsnag/core'
3+
import Bugsnag from '@bugsnag/js'
34

45
type BugsnagWithInternals = typeof Bugsnag & {
56
_client: Client | null

packages/plugin-angular/src/lib/plugin.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { ErrorHandler } from '@angular/core'
2-
import { Client, Event, Plugin } from '@bugsnag/js'
1+
import type { ErrorHandler } from '@angular/core'
2+
import type { Plugin } from '@bugsnag/core'
3+
import type { Event } from '@bugsnag/js'
34
import BugsnagErrorHandler from './bugsnag-error-handler'
45

56
// angular uses zones to watch for changes in asynchronous tasks so it can
@@ -16,7 +17,7 @@ const isNgZoneEnabled = typeof Zone !== 'undefined' && !!Zone.current
1617

1718
const plugin: Plugin = {
1819
name: 'Angular',
19-
load: (client: Client): ErrorHandler => {
20+
load: (client): ErrorHandler => {
2021
const originalNotify = client._notify
2122
client._notify = function () {
2223
const event = arguments as unknown as Event

0 commit comments

Comments
 (0)