Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javascript.operators.import_meta - Missing import.meta.dirname / import.meta.filename support for node #26066

Open
0xdevalias opened this issue Feb 27, 2025 · 0 comments
Labels
data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript needs triage This issue needs to be confirmed

Comments

@0xdevalias
Copy link

0xdevalias commented Feb 27, 2025

What type of issue is this?

Missing compatibility data

What information was incorrect, unhelpful, or incomplete?

There are no entries for import.meta.filename / import.meta.dirname support in node (and I think also bun and similar possibly?)

What browsers does this problem apply to, if applicable?

Node.js

What did you expect to see?

I expected to be able to see what version of node started supporting import.meta.filename / import.meta.dirname

Did you test this? If so, how?

I looked at the data:

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

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:

Originally posted by @0xdevalias in williamkapke/node-compat-table#92

Do you have anything more you want to share?

No response

MDN URL

No response

MDN metadata

No response

@0xdevalias 0xdevalias added the needs triage This issue needs to be confirmed label Feb 27, 2025
@0xdevalias 0xdevalias changed the title javascript.operators.import_meta - Missing import.meta.dirname / import.meta.filename support for node javascript.operators.import_meta - Missing import.meta.dirname / import.meta.filename support for node Feb 27, 2025
@queengooborg queengooborg added the data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript needs triage This issue needs to be confirmed
Projects
None yet
Development

No branches or pull requests

2 participants