browserify-lite
v0.5.1
Published
browserify, minus some of the advanced features and heavy dependencies.
Downloads
17
Readme
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.
- All require statements are found regardless of if they are in an
- 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.