]> git.immae.eu Git - github/fretlink/purs-loader.git/commitdiff
Merge branch 'fix-deprecated-warning' of https://github.com/ryani33/purs-loader into...
authoreric thul <thul.eric@gmail.com>
Sat, 15 Apr 2017 19:48:12 +0000 (15:48 -0400)
committereric thul <thul.eric@gmail.com>
Sat, 15 Apr 2017 19:48:12 +0000 (15:48 -0400)
package.json
src/index.js

index 627bbb35d14fcc02ca31767a136ffff59f9f82ed..6aa621274ee36ae264f660ac7d861274b7811a17 100644 (file)
@@ -42,8 +42,8 @@
     "debug": "^2.2.0",
     "globby": "^4.0.0",
     "js-string-escape": "^1.0.1",
-    "loader-utils": "^0.2.14",
     "lodash.difference": "^4.5.0",
+    "loader-utils": "^1.0.2",
     "promise-retry": "^1.1.0"
   },
   "devDependencies": {
index 6fb2fcef765a9cbe2fadec03148f14c51c5dd8d5..047927c3aa4e6ccda62fba03683fa74b758d094f 100644 (file)
@@ -15,7 +15,7 @@ const eol = require('os').EOL
 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 => {