forked from compat-table/compat-table
-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
We can see more about when
import.metawas introduced here:
- Add
import.meta.directoryandimport.meta.fileproperties nodejs/node#47756- esm: add import.meta.dirname and import.meta.filename nodejs/node#48740
- Skimming through this PR, it seems
import.meta.dirname/similar support was introduced in node20.11.0We can confirm that in the
nodedocs, seeing that onlyimport.meta.url/import.meta.resolveare available in node19.x:But from node
20.x+,import.meta.dirname/import.meta.filenameare also available:Originally posted by @0xdevalias in jehna/humanify#343 (comment)
See also:
- https://caniuse.com/?search=import.meta
- Missing
import.meta.dirname/import.meta.filenamesupport for node mdn/content#38335 javascript.operators.import_meta- Missingimport.meta.dirname/import.meta.filenamesupport for node mdn/browser-compat-data#26066- import / export #7
- Test modules again compat-table#316
- Add "Modules Tab" to Compat Table compat-table#1053
- Lots of features missing from the "esnext" tab compat-table#1034
- Proposal: Add ES modules footnote to the main page compat-table#1580
Tangentially related:
BCD has compat info for most if not all of the features you describe. See the compat tables on these pages:
- developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
- developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import
- developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import.meta
- developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap
- developer.mozilla.org/en-US/docs/Web/API/Worker/Worker
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)
Metadata
Metadata
Assignees
Labels
No labels