Skip to content

Commit 519a8c0

Browse files
ryantdai
authored andcommitted
fix deprecated warning (webpack-contrib#178)
* fix deprecated warning * add semicolon
1 parent aab8226 commit 519a8c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

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

4444
var loader = this;
4545
var file = loader.resourcePath;
46-
var params = loaderUtils.parseQuery(loader.query);
46+
var params = loaderUtils.getOptions(loader) || {};
4747

4848
var options = params.plugins || loader.options.postcss;
4949
var pack = params.pack;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"license": "MIT",
1717
"repository": "postcss/postcss-loader",
1818
"dependencies": {
19-
"loader-utils": "^0.2.16",
19+
"loader-utils": "^1.0.2",
2020
"object-assign": "^4.1.1",
2121
"postcss": "^5.2.14",
2222
"postcss-load-config": "^1.2.0"

0 commit comments

Comments
 (0)