- This now exports the plugin function instead of a factory, better conforming to the browserify plugin API. So usage is changed from
b.plugin(require("pathmodify")())
tob.plugin(require("pathmodify"))
.
-
Calls to pathmodify previously mutated the passed in options object, leaking internal data and causing bugs in some situations. See jmm/pathmodify#5. Thanks to @englercj for reporting and debugging the problem!
Furthermore, it was previously possible to mutate
opts.mods
after instantiating the plugin.opts.mods
is now copied on instantiation.
Enable returning true
from expose()
to expose the module with its ID. For example: pathmodify.mod.id('a', 'b', function () { return true; })
will expose the module as a
.
Fix bug that broke the plugin on Windows. See #1.
Add support for reset / rebundling / watchify.
Add label to pipeline stream.