Skip to content

Commit

Permalink
Merge pull request #120 from alexilyaev/patch-2
Browse files Browse the repository at this point in the history
Add CommonJS package manager support (closes #119)
  • Loading branch information
asafdav committed Sep 27, 2015
2 parents 864c6ee + 7575616 commit 2f50137
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ng-csv/ng-csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ angular.module('ngCsv',
'ngCsv.directives',
'ngSanitize'
]);

// Common.js package manager support (e.g. ComponentJS, WebPack)
if (typeof module !== 'undefined' && typeof exports !== 'undefined' && module.exports === exports) {
module.exports = 'ngCsv';
}

0 comments on commit 2f50137

Please sign in to comment.