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

Add Node 20.11 import.meta info #2254

Merged
merged 3 commits into from Jan 14, 2024
Merged

Add Node 20.11 import.meta info #2254

merged 3 commits into from Jan 14, 2024

Conversation

casantosmu
Copy link
Contributor

Update JS Module Documentation for Node 20.11 Changes

  • Added information about import.meta.dirname and import.meta.filename in ES modules, introduced in Node 20.11.

@casantosmu
Copy link
Contributor Author

@sindresorhus Better. Thank you very much for your great work 🦄

@fisker
Copy link
Collaborator

fisker commented Jan 13, 2024

we can supply more suggestions

const replacement = node.name === '__dirname'

@sindresorhus
Copy link
Owner

@fisker Agreed, but better done in a separate pull request: #2255

@sindresorhus sindresorhus merged commit eb5af8b into sindresorhus:main Jan 14, 2024
18 checks passed
@casantosmu casantosmu deleted the add-esm-import-meta-info branch January 14, 2024 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants