browserify-require-not-found-parent
Report pathname of parent module when resolving require() fails in Browserify.
Last updated 5 years ago by jmm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install browserify-require-not-found-parent 
SYNC missed versions from official npm registry.

When resolving a require() fails with MODULE_NOT_FOUND (Error: Cannot find module 'dep' from 'parent'), report the requiring module's pathname instead of just its directory.

Installation:

browserify-require-not-found-parent on npm.

Usage:

var browserifyRequireNotFoundParent =
  require("browserify-require-not-found-parent");

browserify()
.plugin(browserifyRequireNotFoundParent)

See:

https://github.com/substack/node-resolve/pull/64

https://github.com/substack/node-browserify/issues/1083

https://github.com/substack/node-browserify/issues/1117

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 |