/browserify-lite

browserify, minus some of the advanced features and heavy dependencies

Primary LanguageJavaScriptMIT LicenseMIT

browserify-lite

browserify, minus some of the advanced features and heavy dependencies.

  • No builtin Node.js shims.
  • Naive AST tokenization for require instead of true AST parsing.
    • All require statements are found regardless of if they are in an if statement or a function body that is never called.
  • Only supports a single entry file and the --outfile parameter, nothing else.
  • No source maps.
  • Minimal dependencies.

Usage

browserify-lite ./entry-file.js --outfile bundle.js

Standard Options:

        --outfile         Write the browserify bundle to this file.
        --standalone xyz  Export as a window global.

./src/app.js can depend on any modules using Node.js's module resolution system and they will be bundled as well.