pathmodify
Version:
Rewrite (alias) and expose `require()` IDs in browserify.
20 lines (12 loc) • 963 B
Markdown
* 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")())` to `b.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
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
Add support for reset / rebundling / watchify.
Add label to pipeline stream.