Skip to content

Commit

Permalink
fix(export): Correctly export as ES module (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
danez authored Apr 7, 2017
1 parent c31f765 commit 55998f3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function shouldCompile(filename, exts, matcher, ignoreNodeModules) {
* @param {Boolean} [opts.ignoreNodeModules=true] - Auto-ignore node_modules. Independent of any matcher.
* @returns {Function} revert - Reverts the hooks.
*/
function addHook(hook, opts = {}) {
export function addHook(hook, opts = {}) { // eslint-disable-line import/prefer-default-export
let reverted = false;
const loaders = [];
const oldLoaders = [];
Expand Down Expand Up @@ -94,7 +94,3 @@ function addHook(hook, opts = {}) {
});
};
}

module.exports = {
addHook,
};

0 comments on commit 55998f3

Please sign in to comment.