Egge on Nostr: Yes, that is a great guide and ESM is a move to the right direction. It still ...
Yes, that is a great guide and ESM is a move to the right direction. It still requires you to jump through hoops though, when working with CJS dependencies.
And unfortunately integral parts of the node ecosystem (eg express) still do not publish ESM exports
Published at
2025-05-14 06:21:20Event JSON
{
"id": "3ecdd7df232c5e8a0c51dff259be30c26d7f75636c43bb1ab4b9e7721a0f12c0",
"pubkey": "ddf03aca85ade039e6742d5bef3df352df199d0d31e22b9858e7eda85cb3bbbe",
"created_at": 1747203680,
"kind": 1,
"tags": [
[
"e",
"bef5015f1c8c96935635fdb9bfef75553fe4bafd4ae50723606ec3a0b1943442",
"",
"root"
],
[
"e",
"d9f7cad12f9f863b7dc7fa42c92b4b3ad16041f6dbd46be76bd54c8b0722d840",
"",
"reply"
],
[
"p",
"d04ecf33a303a59852fdb681ed8b412201ba85d8d2199aec73cb62681d62aa90"
],
[
"p",
"b299876ba85e33da57269247f7f91aee025f5bd2bc229aa85c7908f37c10c838"
]
],
"content": "Yes, that is a great guide and ESM is a move to the right direction. It still requires you to jump through hoops though, when working with CJS dependencies.\n\nAnd unfortunately integral parts of the node ecosystem (eg express) still do not publish ESM exports",
"sig": "e5011fb801561280acd1b101384d42d903105566d1aff6a60cad36cdf3dba208980bde96b2a32b9b9dd26a94c635ca1104363080cb2ba97ca9ff3b932671caaf"
}