From 77e63e637427687b2ef267b59bc12c2ab75668e2 Mon Sep 17 00:00:00 2001 From: Brian Ng Date: Wed, 22 Feb 2017 10:00:28 -0600 Subject: [PATCH] Bump loader-utils and use getOptions --- package.json | 2 +- src/index.js | 2 +- yarn.lock | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 300ba91e..5823c934 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "main": "lib/index.js", "dependencies": { "find-cache-dir": "^0.1.1", - "loader-utils": "^0.2.16", + "loader-utils": "^1.0.2", "mkdirp": "^0.5.1", "object-assign": "^4.0.1" }, diff --git a/src/index.js b/src/index.js index 57948bf8..12922828 100644 --- a/src/index.js +++ b/src/index.js @@ -76,7 +76,7 @@ module.exports = function(source, inputSourceMap) { // Handle options const globalOptions = this.options.babel || {}; - const loaderOptions = loaderUtils.parseQuery(this.query); + const loaderOptions = loaderUtils.getOptions(this); const userOptions = assign({}, globalOptions, loaderOptions); const defaultOptions = { inputSourceMap: inputSourceMap, diff --git a/yarn.lock b/yarn.lock index da7c1221..a9a9db34 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2627,6 +2627,14 @@ loader-utils@^0.2.11, loader-utils@^0.2.16: json5 "^0.5.0" object-assign "^4.0.1" +loader-utils@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.0.2.tgz#a9f923c865a974623391a8602d031137fad74830" + dependencies: + big.js "^3.1.3" + emojis-list "^2.0.0" + json5 "^0.5.0" + lodash._baseassign@^3.0.0: version "3.2.0" resolved "https://registry.yarnpkg.com/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz#8c38a099500f215ad09e59f1722fd0c52bfe0a4e"