aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorryani33 <xiaoyu.zhai@hotmail.com>2017-02-25 12:32:40 +0800
committerryani33 <xiaoyu.zhai@hotmail.com>2017-02-25 12:32:40 +0800
commit8bdff27290a98fc2cfbc9d516b011a399af01b5c (patch)
treed604d3f2ad701f5893bed9c345e40e875c945fcc
parenta3c358f80f8197d5a1d05e42916cd5593b5b2dd5 (diff)
downloadpurs-loader-8bdff27290a98fc2cfbc9d516b011a399af01b5c.tar.gz
purs-loader-8bdff27290a98fc2cfbc9d516b011a399af01b5c.tar.zst
purs-loader-8bdff27290a98fc2cfbc9d516b011a399af01b5c.zip
fix deprecated warning
-rw-r--r--package.json2
-rw-r--r--src/index.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/package.json b/package.json
index 09301db..f16ee86 100644
--- a/package.json
+++ b/package.json
@@ -42,7 +42,7 @@
42 "debug": "^2.2.0", 42 "debug": "^2.2.0",
43 "globby": "^4.0.0", 43 "globby": "^4.0.0",
44 "js-string-escape": "^1.0.1", 44 "js-string-escape": "^1.0.1",
45 "loader-utils": "^0.2.14", 45 "loader-utils": "^1.0.2",
46 "promise-retry": "^1.1.0" 46 "promise-retry": "^1.1.0"
47 }, 47 },
48 "devDependencies": { 48 "devDependencies": {
diff --git a/src/index.js b/src/index.js
index 249f472..e49fd2c 100644
--- a/src/index.js
+++ b/src/index.js
@@ -18,7 +18,7 @@ const requireRegex = /require\(['"]\.\.\/([\w\.]+)['"]\)/g
18module.exports = function purescriptLoader(source, map) { 18module.exports = function purescriptLoader(source, map) {
19 const callback = this.async() 19 const callback = this.async()
20 const config = this.options 20 const config = this.options
21 const query = loaderUtils.parseQuery(this.query) 21 const query = loaderUtils.getOptions(this) || {}
22 const webpackOptions = this.options.purescriptLoader || {} 22 const webpackOptions = this.options.purescriptLoader || {}
23 23
24 const depsPaths = (pscPackage => { 24 const depsPaths = (pscPackage => {