You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ESM is actually preferred for all. The documentation is quite old at this point, PRs to adjust are very welcome. (Especially the examples are still from the days before Node had .mjs support, since they are meant to be runnable, they stuck with cjs)
Module Example -> https://polkadot.js.org/docs/api/start/create
Common Js Example -> https://polkadot.js.org/docs/api/examples/promise/listen-to-blocks
In the overview, it seems like 'CommonJs' is the chosen format. Perhaps a task is to redo some of the examples?
The text was updated successfully, but these errors were encountered: