0.0.0 • Published 10 years ago

remove-catch-require v0.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
10 years ago

remove-catch-require Flattr this!experimental

Transform stream to remove require calls from inside a catch{} statement. Useful for modules looking for browserify compatability while using the try/catch optional dependency trick.

Usage

remove-catch-require

remove-catch-require is just a browserify transform stream, so you can use it like so:

browserify -t remove-catch-require

Or by including it in your project's package.json file:

{
  "browserify": {
    "transform": [
      "remove-catch-require"
    ]
  }
}

You can also find an AST transform that plays nice with ast-pipeline at require('remove-catch-require/ast').

License

MIT. See LICENSE.md for details.