diff --git a/index.js b/index.js index 90d0206..5692405 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,7 @@ module.exports = function() {}; module.exports.pitch = function(req) { this.cacheable && this.cacheable(); var source = []; - var query = loaderUtils.parseQuery(this.query); + var query = loaderUtils.getOptions(this) || {}; query.ui = query.ui || 'bdd'; if(this.target == "web" || this.target == "electron-renderer") { source.push("require(" + JSON.stringify("!!" + path.join(__dirname, "web.js")) + ");"); diff --git a/package.json b/package.json index 68eb346..198dec0 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "script-loader": "~0.7.0", "css-loader": "~0.23.1", "style-loader": "~0.13.1", - "loader-utils": "~0.2.15" + "loader-utils": "^1.0.2" }, "licenses": [ {