Browserify allows transforms to have options used like bundle.transform(transform, options).
The syntax to use these in the browserify key of a package.json file is [transform, options]. This PR allows the same syntax to be used with the browserify.transforms config option. The old syntax is still supported.
Here's an example of using it with jadeify to pass in options:
While I don't really like this way of associating transforms with their options, if it's how browserify does it already then I think it's the best way to go. So :+1: from me
Browserify allows transforms to have options used like
bundle.transform(transform, options)
.The syntax to use these in the browserify key of a package.json file is
[transform, options]
. This PR allows the same syntax to be used with thebrowserify.transforms
config option. The old syntax is still supported.Here's an example of using it with
jadeify
to pass in options:Old (still supported)
New