We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I have trouble to using open in my Node esm library because it relies on __dirname.
open
__dirname
// Path to included `xdg-open`. const localXdgOpenPath = path.join(__dirname, 'xdg-open');
At runtime I get following issue:
ReferenceError: __dirname is not defined in ES module scope
Is there a way to polyfill it to support both cjs and esm?
The text was updated successfully, but these errors were encountered:
Done: https://github.com/sindresorhus/open/releases/tag/v9.0.0
Sorry, something went wrong.
Awesome, works like a charm. Thanks!
No branches or pull requests
Hi,
I have trouble to using
open
in my Node esm library because it relies on__dirname
.At runtime I get following issue:
Is there a way to polyfill it to support both cjs and esm?
The text was updated successfully, but these errors were encountered: