Use require('modules')
in the browser with
browersify
and broccoli
npm install --save-dev broccoli-browserify
var browserify = require('broccoli-browserify');
tree = browserify(tree, options);
Options:
entries
: Array of files to be used as entry pointsbrowserify
: Options passed to the browserify constructor see: https://github.com/substack/node-browserify#var-b--browserifyfiles-or-opts- bundle: Options passed to browserify bundle method see: https://github.com/substack/node-browserify#bbundleopts-cb
MIT © Gareth Andrew