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

docs: unify __dirname usage #19176

Merged
merged 3 commits into from
Jan 16, 2025
Merged

docs: unify __dirname usage #19176

merged 3 commits into from
Jan 16, 2025

Conversation

pacexy
Copy link
Contributor

@pacexy pacexy commented Jan 10, 2025

Description

This PR unifies __dirname usage in the docs.

Todo

There are still some variants of the __dirname shim (e.g. fileURLToPath(new URL('.', import.meta.url))).
I think it's better to use import.meta.dirname when Node.js 18 support is dropped.

Related: #18343

@sapphi-red sapphi-red added the documentation Improvements or additions to documentation label Jan 16, 2025
@patak-dev patak-dev merged commit 4f5845a into vitejs:main Jan 16, 2025
13 checks passed
@pacexy pacexy deleted the unify-dirname-usage branch January 17, 2025 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants