Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Doc fix for Issue substack/node-browserify#161 #226

wants to merge 1 commit into from

2 participants


No description provided.


Thanks for the pull request but aliases are gone in v2

@substack substack closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 26 deletions.
  1. +4 −26 doc/methods.markdown
30 doc/methods.markdown
@@ -66,33 +66,11 @@ string `'process'`.
-Require a file or files for inclusion in the bundle.
+Require a file for inclusion in the bundle.
-If `file` is an array, require each element in it.
-If `file` is a non-array object, map an alias to a package name.
-For instance to be able to map `require('jquery')` to the jquery-browserify
-package, you can do:
-b.require({ jquery : 'jquery-browserify' })
-and the same thing in middleware-form:
-browserify({ require : { jquery : 'jquery-browserify' } })
-To mix alias objects with regular requires you could do:
-browserify({ require : [ 'seq', { jquery : 'jquery-browserify' }, 'traverse' ])
-In practice you won't need to `b.require()` very many files since all the
-`require()`s are read from each file that you require and automatically
+In practice you need to `b.require()` one (or very few) file(s) since the AST walk will
+recursively look for subsequent require() calls descendant from the starting point(s)
+you provide.
Something went wrong with that request. Please try again.