diff --git a/index.js b/index.js index 5c91fea..b734d9b 100644 --- a/index.js +++ b/index.js @@ -17,7 +17,7 @@ module.exports = function(source) { var req = loaderUtils.getRemainingRequest(this).replace(/^!/, ""); - var query = loaderUtils.getLoaderConfig(this, "pugLoader"); + var query = loaderUtils.getOptions(this); var loadModule = this.loadModule; var resolve = this.resolve; diff --git a/package.json b/package.json index 650d7a1..686c075 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "Timothy Gu " ], "dependencies": { - "loader-utils": "~0.2.5", + "loader-utils": "^1.1.0", "pug-walk": "^1.0.0", "resolve": "^1.1.7" },