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
The documentation is unclear about this point:
If the transform is a function, it should take the file name as an argument
Then, the example shows a second parameters named opts:
opts
var through = require('through2'); module.exports = function (file, opts) { return through() };
What is this second parameter? Is it the options passed to module-deps constructor?
The text was updated successfully, but these errors were encountered:
It's the row.options property on on the input object: https://github.com/browserify/module-deps#input-objects Typically browserify passes it in from its .transform() method, which more or less does:
row.options
.transform()
function transform(transformPathOrFn, transformOptions) { mdeps.write({ transform: transformPathOrFn, options: transformOptions }) }
e; And if you pass in an opts.transform option to the module-deps constructor, you can set options like:
opts.transform
moduleDeps({ transform: [ ['transformPath', { options: 'here' }] ] })
agree that docs could be clearer about this!
Sorry, something went wrong.
No branches or pull requests
The documentation is unclear about this point:
Then, the example shows a second parameters named
opts
:What is this second parameter? Is it the options passed to module-deps constructor?
The text was updated successfully, but these errors were encountered: