Skip to content

Commit

Permalink
Merge pull request #125 from km-tr/fix_deprecation_warning
Browse files Browse the repository at this point in the history
Fix deprecation warning
  • Loading branch information
pcardune authored Apr 18, 2017
2 parents b64f262 + 455614c commit e344e14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function versionCheck(hbCompiler, hbRuntime) {
* @returns {Object}
*/
function getLoaderConfig(loaderContext) {
var query = loaderContext.query instanceof Object ? loaderContext.query : loaderUtils.parseQuery(loaderContext.query);
var query = loaderUtils.getOptions(loaderContext) || {};
var configKey = query.config || 'handlebarsLoader';
var config = loaderContext.options[configKey] || {};
delete query.config;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"async": "~0.2.10",
"fastparse": "^1.0.0",
"loader-utils": "0.2.x",
"loader-utils": "1.0.x",
"object-assign": "^4.1.0"
},
"peerDependencies": {
Expand Down

0 comments on commit e344e14

Please sign in to comment.