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.
1 parent a0dc243 commit ab5c225Copy full SHA for ab5c225
src/shell.js
@@ -235,7 +235,7 @@ if (ENVIRONMENT_IS_NODE) {
235
// EXPORT_ES6 + ENVIRONMENT_IS_NODE always requires use of import.meta.url,
236
// since there's no way getting the current absolute path of the module when
237
// support for that is not available.
238
- scriptDirectory = path.dirname(require('url').fileURLToPath(import.meta.url)); // includes trailing slash
+ scriptDirectory = nodePath.dirname(require('url').fileURLToPath(import.meta.url)); // includes trailing slash
239
#else
240
scriptDirectory = __dirname + '/';
241
#endif
0 commit comments