We can see more about when import.meta was introduced here:
We can confirm that in the node docs, seeing that only import.meta.url / import.meta.resolve are available in node 19.x:
But from node 20.x+, import.meta.dirname / import.meta.filename are also available:
Originally posted by @0xdevalias in jehna/humanify#343 (comment)
See also:
Tangentially related:
BCD has compat info for most if not all of the features you describe. See the compat tables on these pages:
We are working on a mechanism to better group features in collaboration with the web-platform-dx/feature-set project. Hopefully, there will be a group for all things modules soon.
Originally posted by @Elchi3 in mdn/browser-compat-data#4819 (comment)
See also:
import.meta.dirname/import.meta.filenamesupport for node mdn/content#38335javascript.operators.import_meta- Missingimport.meta.dirname/import.meta.filenamesupport for node mdn/browser-compat-data#26066Tangentially related: