diff --git a/src/app-bridge/app-bridge.ts b/src/app-bridge/app-bridge.ts index 55d15ac..9be7609 100644 --- a/src/app-bridge/app-bridge.ts +++ b/src/app-bridge/app-bridge.ts @@ -1,4 +1,4 @@ -import { debug as createDebug } from "debug"; +import debugPkg from "debug"; import { Actions } from "./actions"; import { AppBridgeState, AppBridgeStateContainer } from "./app-bridge-state"; @@ -12,7 +12,7 @@ type SubscribeMap = { [type in EventType]: Record>>; }; -const debug = createDebug("AppBridge"); +const debug = debugPkg.debug("AppBridge"); function eventStateReducer(state: AppBridgeState, event: Events) { debug("Event reducer received event: %j", event);