-
Notifications
You must be signed in to change notification settings - Fork 756
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
🐛 BUG: Support __dirname
#7606
Comments
Hi, as |
The demo was simplified, I was actually using a library that uses |
Ah I see, that makes more sense 😅 cc @vicb |
__dirname
__dirname
Describe the solution
I'm pretty sure this is a bug, but I didn't see a bug report issue so I opened a feature request instead.
I'm getting this error:
Minimal reproduction:
and my
wrangler.toml
:Expected behavior
__dirname
should output the directory that the file is currently in, similar toimport.meta.dir
.The text was updated successfully, but these errors were encountered: