Bill Mill on Nostr: nprofile1q…56m2n `"type": "module"` is a node thing, the documentation lives here: ...
nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqupkp7fd7rc3lrjg23r8gy0wc723vze7mxlx5984ut6zurjzpf5xsv56m2n (nprofile…6m2n) `"type": "module"` is a node thing, the documentation lives here: https://nodejs.org/api/packages.html#modules-packages
the main thing I think of it doing is telling node to expect a given .js file to be an ESM file (import, top level await, etc) rather than a commonjs file (require). You can use `.cjs` and `.mjs` in any node module, but the `type` tells node which the default is
the main thing I think of it doing is telling node to expect a given .js file to be an ESM file (import, top level await, etc) rather than a commonjs file (require). You can use `.cjs` and `.mjs` in any node module, but the `type` tells node which the default is