Skip to content

Commit

Permalink
Updating version 1.0.0, potentially breaking changes to accomodate th…
Browse files Browse the repository at this point in the history
…e new version of webpack.
  • Loading branch information
baderbuddy committed Jul 2, 2017
1 parent d5690b9 commit a66844b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var minifierDefaults = {
};

module.exports = function(source) {
var query = loaderUtils.getOptions(this);
var query = loaderUtils.getOptions(this) || {};
var hoganOpts = extend(query, { asString: true });
delete hoganOpts.minify;
delete hoganOpts.noShortcut;
Expand Down Expand Up @@ -54,7 +54,7 @@ module.exports = function(source) {
};
module.exports.pitch = function(remainingRequest, precedingRequest, data) {
if (remainingRequest.indexOf('!') >= 0) {
var query = loaderUtils.getOptions(this.query);
var query = loaderUtils.getOptions(this) || {};
var hoganOpts = extend(query);
delete hoganOpts.minify;
delete hoganOpts.noShortcut;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mustache-loader",
"version": "0.4.1",
"version": "1.0.0",
"description": "Mustache loader for webpack",
"keywords": [
"webpack",
Expand Down Expand Up @@ -30,7 +30,7 @@
"xtend": "^4.0.0"
},
"devDependencies": {
"eslint": "^3.6.1",
"eslint": "^4.0.0",
"jscs": "^3.0.7",
"mocha": "^3.1.0",
"chai": "^4.0.0"
Expand Down

0 comments on commit a66844b

Please sign in to comment.