ESM and resolving relative paths in node

2 issues

  1. import

  2. outside of imports (just a string you pass) path.resolve('./file.js')

Reading

https://formidable.com/blog/2021/node-esm-and-exports/ https://docs.joshuatz.com/cheatsheets/node-and-npm/node-esm/