aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/index.js
diff options
context:
space:
mode:
authorAlex Mingoia <talk@alexmingoia.com>2016-05-14 13:56:14 -0700
committerAlex Mingoia <talk@alexmingoia.com>2016-05-14 13:56:14 -0700
commit2d052df7f972f2a5fadf1711b13263a2e4dd6d33 (patch)
tree3a80716369c0a1a091a5ed2d31853b0382a17840 /src/index.js
parent9dc1021066dea00eb43574e705df383728e667e2 (diff)
downloadpurs-loader-2d052df7f972f2a5fadf1711b13263a2e4dd6d33.tar.gz
purs-loader-2d052df7f972f2a5fadf1711b13263a2e4dd6d33.tar.zst
purs-loader-2d052df7f972f2a5fadf1711b13263a2e4dd6d33.zip
Correctly parse boolean options.
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index 23a99dd..e09d247 100644
--- a/src/index.js
+++ b/src/index.js
@@ -467,6 +467,6 @@ function dargs(obj) {
467 else if (Array.isArray(val)) val.forEach(v => args.push(arg, v)) 467 else if (Array.isArray(val)) val.forEach(v => args.push(arg, v))
468 else args.push(arg, obj[key]) 468 else args.push(arg, obj[key])
469 469
470 return args 470 return args.filter(arg => (typeof arg !== 'boolean'))
471 }, []) 471 }, [])
472} 472}