Skip to content

Commit

Permalink
FIX module resolve (#5840)
Browse files Browse the repository at this point in the history
  • Loading branch information
croatialu committed Apr 8, 2024
1 parent 033a5c2 commit 97e2ecd
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/plugins/replication-webrtc/connection-handler-simple-peer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@ import type {
SyncOptionsWebRTC
} from './webrtc-types.ts';

import {
Instance as SimplePeerInstance,
Options as SimplePeerOptions,
default as Peer
import type {
SimplePeer as Peer,
Instance as SimplePeerInstance,
Options as SimplePeerOptions
} from 'simple-peer';
import {
default as _Peer
// @ts-ignore
} from 'simple-peer/simplepeer.min.js';

const Peer = _Peer as Peer

import type { RxError, RxTypeError } from '../../types/index.d.ts';
import { newRxError } from '../../rx-error.ts';

Expand Down

0 comments on commit 97e2ecd

Please sign in to comment.