Skip to content

Are module-deps options passed as parameter to the transforms? #160

Description

@ericmorand

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:

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions