Skip to content

Commit

Permalink
Bump loader-utils and use getOptions (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
existentialism authored and danez committed Mar 4, 2017
1 parent 7e0d776 commit cc8b341
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cc8b341

Please sign in to comment.