dedupify
Replace the default dedupe transform for browserify
Last updated 5 years ago by zoubin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dedupify 
SYNC missed versions from official npm registry.

dedupify

version status node

Replace the default dedupe transform for browserify, to fix substack/factor-bundle#51.

Usage

const browserify = require('browserify')
const dedupify = require('dedupify')

var b = browserify(opts)
b.plugin(dedupify)
b.on('dedupify.deduped', (o) => {
  console.warn('Duplicates of modules found!', o.file, o.dup)
})

NOTE This plugin disables the dedupe transform, so you probably should warn the developer to reinstall dependencies manually.

Events

b.on('dedupify.deduped', o)

o.file and o.dup are file paths to the two modules which have the same contents.

Current Tags

  • 0.1.0                                ...           latest (5 years ago)

1 Versions

  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |