Skip to content

Commit

Permalink
fix(src): use module.exports instead of default
Browse files Browse the repository at this point in the history
Babel 6 changes how default export interops with commonjs.
  • Loading branch information
dustinspecker committed Nov 13, 2015
1 parent 09cb0b9 commit 5ad580a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import arrayUnique from 'array-unique';
* @param {String} fileContents - Angular file contents to be examined
* @returns {String[]} - list of module names get/set in file
*/
export default function ngModGetNames(fileContents) {
module.exports = function (fileContents) {
let modules = []
, match, regex;

Expand All @@ -29,4 +29,4 @@ export default function ngModGetNames(fileContents) {
}

return arrayUnique(modules);
}
};

0 comments on commit 5ad580a

Please sign in to comment.