]> git.immae.eu Git - github/fretlink/purs-loader.git/commitdiff
fix deprecated warning
authorryani33 <xiaoyu.zhai@hotmail.com>
Sat, 25 Feb 2017 04:32:40 +0000 (12:32 +0800)
committerryani33 <xiaoyu.zhai@hotmail.com>
Sat, 25 Feb 2017 04:32:40 +0000 (12:32 +0800)
package.json
src/index.js

index 09301db15c7eea43ee632aa41f005076e281d295..f16ee86f8040576127a9985f086fb26fc96709ea 100644 (file)
@@ -42,7 +42,7 @@
     "debug": "^2.2.0",
     "globby": "^4.0.0",
     "js-string-escape": "^1.0.1",
-    "loader-utils": "^0.2.14",
+    "loader-utils": "^1.0.2",
     "promise-retry": "^1.1.0"
   },
   "devDependencies": {
index 249f4723a249e540c13656fbb8245413081bee03..e49fd2c780f4e698665d32a1a614cab0573544ba 100644 (file)
@@ -18,7 +18,7 @@ const requireRegex = /require\(['"]\.\.\/([\w\.]+)['"]\)/g
 module.exports = function purescriptLoader(source, map) {
   const callback = this.async()
   const config = this.options
-  const query = loaderUtils.parseQuery(this.query)
+  const query = loaderUtils.getOptions(this) || {}
   const webpackOptions = this.options.purescriptLoader || {}
 
   const depsPaths = (pscPackage => {