mirror of https://github.com/status-im/js-waku.git
fix: export wait_for_remote_peer in exports map
This module will just consume a generate Waku and Waku Relay interfaces so we already we want to extract it. It is also one opinionated to handle connection management, other ways might come with https://github.com/status-im/js-waku/issues/914.
This commit is contained in:
parent
71ca4c9c91
commit
2108e56dfa
|
@ -9,7 +9,7 @@ module.exports = [
|
||||||
path: ["bundle/index.js", "bundle/lib/create_waku.js"],
|
path: ["bundle/index.js", "bundle/lib/create_waku.js"],
|
||||||
import: {
|
import: {
|
||||||
"./bundle/lib/create_waku.js": "{ createWaku }",
|
"./bundle/lib/create_waku.js": "{ createWaku }",
|
||||||
"./bundle/index.js": "{ waitForRemotePeer }",
|
"./bundle/lib/wait_for_remote_peer.js": "{ waitForRemotePeer }",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,6 +24,10 @@
|
||||||
"./lib/predefined_bootstrap_nodes": {
|
"./lib/predefined_bootstrap_nodes": {
|
||||||
"types": "./dist/lib/predefined_bootstrap_nodes.d.ts",
|
"types": "./dist/lib/predefined_bootstrap_nodes.d.ts",
|
||||||
"import": "./dist/lib/predefined_bootstrap_nodes.js"
|
"import": "./dist/lib/predefined_bootstrap_nodes.js"
|
||||||
|
},
|
||||||
|
"./lib/wait_for_remote_peer": {
|
||||||
|
"types": "./dist/lib/wait_for_remote_peer.d.ts",
|
||||||
|
"import": "./dist/lib/wait_for_remote_peer.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typesVersions": {
|
"typesVersions": {
|
||||||
|
|
|
@ -9,6 +9,7 @@ export default {
|
||||||
"lib/peer_discovery_dns": "dist/lib/peer_discovery_dns/index.js",
|
"lib/peer_discovery_dns": "dist/lib/peer_discovery_dns/index.js",
|
||||||
"lib/peer_discovery_static_list": "dist/lib/peer_discovery_static_list.js",
|
"lib/peer_discovery_static_list": "dist/lib/peer_discovery_static_list.js",
|
||||||
"lib/predefined_bootstrap_nodes": "dist/lib/predefined_bootstrap_nodes.js",
|
"lib/predefined_bootstrap_nodes": "dist/lib/predefined_bootstrap_nodes.js",
|
||||||
|
"lib/wait_for_remote_peer": "dist/lib/wait_for_remote_peer.js",
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
dir: "bundle",
|
dir: "bundle",
|
||||||
|
|
Loading…
Reference in New Issue