We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
import.meta.url
1 parent 2283000 commit 8ce0f7dCopy full SHA for 8ce0f7d
index.js
@@ -13,7 +13,7 @@ import isInsideContainer from 'is-inside-container';
13
const execFile = promisify(childProcess.execFile);
14
15
// Path to included `xdg-open`.
16
-const __dirname = path.dirname(fileURLToPath(import.meta.url));
+const __dirname = import.meta.url ? path.dirname(fileURLToPath(import.meta.url)) : '';
17
const localXdgOpenPath = path.join(__dirname, 'xdg-open');
18
19
const {platform, arch} = process;
0 commit comments