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

fix: fix undefined '__dirname' (in ES module) for debug option #149

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

amenella
Copy link

Hi,

__dirname global var is not available in ES module: https://nodejs.org/docs/latest-v18.x/api/esm.html#no-__filename-or-__dirname

This issue is causing the debug mode to be failing, and this MR is fixing it.

Solution inspired from: https://stackoverflow.com/a/50052194

@amenella
Copy link
Author

amenella commented Feb 5, 2024

hi @pmowrer, did you have the time to look at this?

@pmowrer pmowrer merged commit a734b06 into pmowrer:master Feb 5, 2024
2 checks passed
@pmowrer
Copy link
Owner

pmowrer commented Feb 5, 2024

Thanks @amenella!

Copy link

github-actions bot commented Feb 5, 2024

🎉 This PR is included in version 8.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants