Skip to content

Add require method

Compare
Choose a tag to compare
@mroderick mroderick released this 26 Jun 10:59
· 5 commits to master since this release

This version adds a require method as an alias for requireWithStubs.

// before
bogus.requireWithStubs('some-requirejs-name', function(m){
    // magic
});

// 0.3.6
bogus.require('some-requirejs-name', function(m){
    // magic
});

It's entirely backwards compatible, requireWithStubs will still work.