Skip to content

Commit 3d47e98

Browse files
committed
fix(getOptions): deprecation warn in loaderUtils (#114)
* fix(getOptions): deprecation warn in loaderUtils * ci(Travis): removes osx build and node 5
1 parent 97ca207 commit 3d47e98

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ sudo: false
22
language: node_js
33
os:
44
- linux
5-
- osx
65
node_js:
76
- node
87
- "6"
9-
- "5"
108
- "4"
119

1210
script: npm run travis

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function randomIdent() {
1414
}
1515

1616
function getLoaderConfig(context) {
17-
var query = loaderUtils.parseQuery(context.query);
17+
var query = loaderUtils.getOptions(context) || {};
1818
var configKey = query.config || 'htmlLoader';
1919
var config = context.options && context.options.hasOwnProperty(configKey) ? context.options[configKey] : {};
2020

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"es6-templates": "^0.2.2",
88
"fastparse": "^1.1.1",
99
"html-minifier": "^3.0.1",
10-
"loader-utils": "^0.2.15",
10+
"loader-utils": "^1.0.2",
1111
"object-assign": "^4.1.0"
1212
},
1313
"license": "MIT",

0 commit comments

Comments
 (0)