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

Use Node APIs to replace __dirname #938

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

50Wliu
Copy link
Member

@50Wliu 50Wliu commented Jun 27, 2024

__dirname doesn't exist in ES modules: see https://nodejs.org/docs/latest-v16.x/api/esm.html#no-__filename-or-__dirname.

While more recent versions of Node have import.meta.dirname, that didn't exist in Node 16. Luckily, its docs helpfully tell you exactly how its constructed :). https://nodejs.org/docs/latest/api/esm.html#importmetadirname

@jessehouwing jessehouwing merged commit af5990c into microsoft:main Jun 27, 2024
5 checks passed
@50Wliu 50Wliu deleted the user/winstonliu/remove-dirname branch June 27, 2024 13:54
@50Wliu
Copy link
Member Author

50Wliu commented Jun 27, 2024

Thanks for the fast review - can I get a new release for this please? :)

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

2 participants