browserify-lite

0.5.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i browserify-lite

Weekly Downloads

4

Version

0.5.1

License

MIT

Unpacked Size

15.6 kB

Total Files

6

Last publish

Collaborators

  • superjoe