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
console.log(parentModule()); // node:internal/modules/cjs/loader console.log(module.parent.path); // /Users/timkelty/Projects/craftcms-webpack/
That latter is what I'm wanting/expecting.
node v16.13.0
The text was updated successfully, but these errors were encountered:
This is also a problem in ESM:
import parentModule from 'parent-module' console.log(parentModule()) // prints "node:internal/modules/esm/module_job"
full gist here: https://gist.github.com/davidmarkclements/98669c376f945df8a8f5ea17f0cb0b2c
Sorry, something went wrong.
This one works:
No branches or pull requests
That latter is what I'm wanting/expecting.
node v16.13.0
The text was updated successfully, but these errors were encountered: