Skip to content

esm: graduate import.meta properties #58011

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Apr 24, 2025

Mark as no longer experimental:

  • import.meta.resolve()
  • import.meta.dirname
  • import.meta.filename

Mark as no longer experimental:

* `import.meta.resolve()`
* `import.meta.dirname`
* `import.meta.filename`
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/loaders

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. esm Issues and PRs related to the ECMAScript Modules implementation. labels Apr 24, 2025
@jasnell jasnell added the semver-minor PRs that contain new features and should be released in the next minor version. label Apr 24, 2025
@jasnell jasnell added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 25, 2025
@@ -350,10 +350,12 @@ properties. It is only supported in ES modules.
added:
- v21.2.0
- v20.11.0
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/00000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pr-url: https://github.com/nodejs/node/pull/00000
pr-url: https://github.com/nodejs/node/pull/58011

Comment on lines +405 to +407
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/00000
description: This property is no longer experimental.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we should first make --experimental-import-meta-resolve a no-op and expose an API to replace it. I have a PR for that, I just need to get back to it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. doc Issues and PRs related to the documentations. esm Issues and PRs related to the ECMAScript Modules implementation. semver-minor PRs that contain new features and should be released in the next minor version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants