Skip to content

Commit

Permalink
feat: add interoperability with CommonJS
Browse files Browse the repository at this point in the history
  • Loading branch information
olegskl committed Jun 22, 2015
1 parent 08246d1 commit b0536ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ocLazyLoad.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -677,4 +677,9 @@
return ngModuleFct(name, requires, configFn);
};

// CommonJS package manager support:
if(typeof module !== 'undefined' && typeof exports !== 'undefined' && module.exports === exports) {
module.exports = 'oc.lazyLoad';
}

})(angular, window);

0 comments on commit b0536ad

Please sign in to comment.