Skip to content

Commit 75124ac

Browse files
Bump loader-utils and use getOptions
1 parent 931c619 commit 75124ac

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"main": "lib/index.js",
99
"dependencies": {
1010
"find-cache-dir": "^0.1.1",
11-
"loader-utils": "^0.2.16",
11+
"loader-utils": "^1.0.2",
1212
"mkdirp": "^0.5.1",
1313
"object-assign": "^4.0.1"
1414
},

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ module.exports = function(source, inputSourceMap) {
8787

8888
// Handle options
8989
const globalOptions = this.options.babel || {};
90-
const loaderOptions = loaderUtils.parseQuery(this.query);
90+
const loaderOptions = loaderUtils.getOptions(this);
9191
const userOptions = assign({}, globalOptions, loaderOptions);
9292
const defaultOptions = {
9393
inputSourceMap: inputSourceMap,

yarn.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2621,6 +2621,14 @@ loader-utils@^0.2.16:
26212621
json5 "^0.5.0"
26222622
object-assign "^4.0.1"
26232623

2624+
loader-utils@^1.0.1:
2625+
version "1.0.2"
2626+
resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.0.2.tgz#a9f923c865a974623391a8602d031137fad74830"
2627+
dependencies:
2628+
big.js "^3.1.3"
2629+
emojis-list "^2.0.0"
2630+
json5 "^0.5.0"
2631+
26242632
lodash._baseassign@^3.0.0:
26252633
version "3.2.0"
26262634
resolved "https://registry.yarnpkg.com/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz#8c38a099500f215ad09e59f1722fd0c52bfe0a4e"

0 commit comments

Comments
 (0)