Skip to content

Commit

Permalink
Fixing RN bundle to avoid including from ./internal.js introduced by #…
Browse files Browse the repository at this point in the history
  • Loading branch information
kraenhansen committed Mar 29, 2023
1 parent 2ceee21 commit c4fcb5f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/realm/src/binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
//
////////////////////////////////////////////////////////////////////////////

import { IndexSet, Int64, ObjKey, Timestamp } from "../generated/ts/native.mjs";
import { binding } from "./internal.js";
import { IndexSet, Int64, Logger, LoggerLevel, ObjKey, Timestamp } from "../generated/ts/native.mjs";

/** @internal */
export * from "../generated/ts/native.mjs"; // core types are transitively exported.
Expand Down Expand Up @@ -76,4 +75,4 @@ export function isEmptyObjKey(objKey: ObjKey) {
}

// Silence logs from core by default
binding.Logger.setDefaultLevelThreshold(binding.LoggerLevel.Off);
Logger.setDefaultLevelThreshold(LoggerLevel.Off);

0 comments on commit c4fcb5f

Please sign in to comment.