Skip to content

Commit

Permalink
post-review
Browse files Browse the repository at this point in the history
  • Loading branch information
esbenp committed Jul 24, 2017
1 parent 9f12f2f commit 47d4180
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bin/convert-argv.js
Expand Up @@ -293,7 +293,7 @@ module.exports = function(yargs, argv, convertOptions) {
ensureObject(options, "entry");
});

function bindRules(arg, collection) {
function bindRules(arg) {
ifArgPair(arg, function(name, binding) {
if(name === null) {
name = binding;
Expand All @@ -308,15 +308,15 @@ module.exports = function(yargs, argv, convertOptions) {
} else if(arg === "module-bind-post") {
rule.enforce = "post";
}
options.module[collection].push(rule);
options.module.rules.push(rule);
}, function() {
ensureObject(options, "module");
ensureArray(options.module, collection);
ensureArray(options.module, "rules");
});
}
bindRules("module-bind", "rules");
bindRules("module-bind-pre", "rules");
bindRules("module-bind-post", "rules");
bindRules("module-bind");
bindRules("module-bind-pre");
bindRules("module-bind-post");

var defineObject;
ifArgPair("define", function(name, value) {
Expand Down

0 comments on commit 47d4180

Please sign in to comment.