Skip to content

Commit

Permalink
Removed old comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
lewie9021 committed Sep 5, 2015
1 parent 0881fa5 commit 7cdd32c
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions lib/resolve/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,8 @@ module.exports = function(name, loader) {

config = loader.config;

/*
if (config.query && config.queries)
throw new Error("Use one or the other, fml");
if (!config.loader && config.query) {
config.loader = name + "?" + JSON.stringify(config.query);
delete config.query;
}
// The queries object contains a map for each loader containing config specific for each one. Provided
// config.loader is falsy, we will construct a query string for each loader.
if (!config.loader && config.queries) {
for (name in config.queries) {
var query = config.queries[name];
var string = (name + "?" + JSON.stringify(query));
query.push(string);
}
config.loader = query.join("!");
delete config.queries;
}
*/

if (!config.loader)
config.loader = name;

return loader.config;
return config;
};

0 comments on commit 7cdd32c

Please sign in to comment.