p2p-db / test / browser / index.html
73 words
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title>ird-p2p-db browser tests</title>
</head>
<body>
  <!-- the vendor chunk first (browser/vendor-entry.mjs bundled by esbuild in
       npm test): it installs Buffer, which the compiled code needs at load -->
  <script src="/vendor.js"></script>
  <script>
    // the ESM dynamic-import helper ird.p2p.db imports helia and libp2p through:
    // in a browser it resolves bare specifiers from the vendor chunk
    globalThis.ird_dyn_import = function (name) { return Promise.resolve(irdVendor.load(name)); };
  </script>
  <script src="/js/test.js"></script>
</body>
</html>

static mirror of HEAD · about · clone: git clone https://ird.cod-sursa.ro/p2p-db.git