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
As we cannot write __dirname to package.json, transforms which require directories must be given relative paths.
__dirname
package.json
{ "browserify": { "transform": [ ["transform1", {"dirname": "relative/path"} ] ] } }
However, there is no way to resolve absolute paths. process.cwd() varies by where node process is created.
process.cwd()
Pass pkg.__dirname to transform functions and we can calculate absolute paths from where the package.json file is located.
pkg.__dirname
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
As we cannot write
__dirname
to package.json, transforms which require directories must be given relative paths.package.json
However, there is no way to resolve absolute paths.
process.cwd()
varies by where node process is created.Pass
pkg.__dirname
to transform functions and we can calculate absolute paths from where the package.json file is located.The text was updated successfully, but these errors were encountered: