var builder = require('neuron-module-bundler');
builder(file, options, callback)
.on('warn', function(message){
console.warn(message);
});- filename
Stringthe pathname of the entry file to be parsed from - options
Object- pkg:
Objectmixed package json format of project - cwd:
Stringcurrent working directory - allowImplicitDependencies:
Boolean=falsewhether allows implicit dependencies. If true and a dependency is not found inpkg, it will be treated as the latest version.
- pkg:
- callback
function(err, content)
callback will get err, contents and parsed as its arguments, where:
- err
Error - content
Stringthe parsed content
