ATProto Browser

ATProto Browser

Experimental browser for the Atmosphere

Post

An interesting thing happened when I tried rewriting test2.js as CJS, and using require(esm)

Nov 15, 2024, 5:31 PM

Record data

{
  "uri": "at://did:plc:unjlhdbmfjyewhbe5wc4rpc7/app.bsky.feed.post/3layvrlmv4s2p",
  "cid": "bafyreibi3pd7eldshc54lfyqe3vpl64d4vjj3e2vfisgoq4wvtvpri72mu",
  "value": {
    "text": "An interesting thing happened when I tried rewriting test2.js as CJS, and using require(esm)",
    "$type": "app.bsky.feed.post",
    "embed": {
      "$type": "app.bsky.embed.images",
      "images": [
        {
          "alt": "Benchmark potentially showing the functions example being \"optimized out\".",
          "image": {
            "$type": "blob",
            "ref": {
              "$link": "bafkreihfdpbgbxqa6yffhr7mb3udlfqiwk53eqoxz37mz5jp3domyhkaxi"
            },
            "mimeType": "image/jpeg",
            "size": 815395
          },
          "aspectRatio": {
            "width": 1874,
            "height": 1748
          }
        }
      ]
    },
    "langs": [
      "en"
    ],
    "reply": {
      "root": {
        "cid": "bafyreidscprrkwhwadywckww3gunalw3o2agytr435osrfqfemcmyqpwdy",
        "uri": "at://did:plc:2q7mnid6di5sxgzzpsdvdu47/app.bsky.feed.post/3laytxx2fj62x",
        "commit": {
          "cid": "bafyreicf66cvup6zyy7cjehh63hjds4qf7zecp4esuk3r7tos3r2d4pxfi",
          "rev": "3laytxx2mdw2x"
        },
        "validationStatus": "valid"
      },
      "parent": {
        "cid": "bafyreidi3x5qnt2dh6efocezdd2i6lus6ekn7tentfbgbxvujwhjdjgucu",
        "uri": "at://did:plc:2q7mnid6di5sxgzzpsdvdu47/app.bsky.feed.post/3layty62xwh2y"
      }
    },
    "createdAt": "2024-11-15T17:31:15.489Z"
  }
}