-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force commonjs imports for ledgerhq-react-native-hw-transport-ble #879
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,8 @@ import { | |
getInfosForServiceUuid, | ||
} from "@ledgerhq/devices"; | ||
import type { DeviceModel } from "@ledgerhq/devices"; | ||
import { sendAPDU } from "@ledgerhq/devices/ble/sendAPDU"; | ||
import { receiveAPDU } from "@ledgerhq/devices/ble/receiveAPDU"; | ||
import { sendAPDU } from "@ledgerhq/devices/lib/ble/sendAPDU"; | ||
import { receiveAPDU } from "@ledgerhq/devices/lib/ble/receiveAPDU"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are we using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the whole point of this PR π.
Workarounds exist and are documented in the linked issue but it's not ideal at all to have to modify the metro config file. Adding |
||
import { log } from "@ledgerhq/logs"; | ||
import { Observable, defer, merge, from, of, throwError } from "rxjs"; | ||
import { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting, i didn't even know about this file!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah it's super useful to tweak pnpm behaviour
https://pnpm.io/npmrc