Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
wants to merge 1 commit into from

2 participants

@lmaccherone

No description provided.

@substack
Owner

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
View
30 doc/methods.markdown
@@ -66,33 +66,11 @@ string `'process'`.
b.require(file)
---------------
-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:
-
-````javascript
-b.require({ jquery : 'jquery-browserify' })
-````
-
-and the same thing in middleware-form:
-
-````javascript
-browserify({ require : { jquery : 'jquery-browserify' } })
-````
-
-To mix alias objects with regular requires you could do:
-
-````javascript
-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
-included.
+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.
b.ignore(file)
--------------
Something went wrong with that request. Please try again.