aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.js
diff options
context:
space:
mode:
authoreric thul <thul.eric@gmail.com>2014-11-20 16:24:19 -0500
committereric thul <thul.eric@gmail.com>2014-11-20 16:24:19 -0500
commit794858ad45b0943e966288109b4f20aa360f39d2 (patch)
tree437d0b5cc2c3c7404257d622713e224b8acbcba7 /index.js
parent5e41b0144e84a136c6c21e936cb28a05002f672b (diff)
parent63ecec203a89b3084b3f3518063998e23a29a83b (diff)
downloadpurs-loader-794858ad45b0943e966288109b4f20aa360f39d2.tar.gz
purs-loader-794858ad45b0943e966288109b4f20aa360f39d2.tar.zst
purs-loader-794858ad45b0943e966288109b4f20aa360f39d2.zip
Merge branch 'topic/bug-fixes'
Diffstat (limited to 'index.js')
-rw-r--r--index.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/index.js b/index.js
index a7665f3..07988a2 100644
--- a/index.js
+++ b/index.js
@@ -13,7 +13,6 @@ var cp = require('child_process')
13 'no-opts': '--no-opts', 13 'no-opts': '--no-opts',
14 'no-magic-do': '--no-magic-do', 14 'no-magic-do': '--no-magic-do',
15 'no-tco': '--no-tco', 15 'no-tco': '--no-tco',
16 'runtime-type-checks': '--runtime-type-checks',
17 'verbose-errors': '--verbose-errors', 16 'verbose-errors': '--verbose-errors',
18 'output': '--output' 17 'output': '--output'
19 } 18 }
@@ -38,7 +37,7 @@ module.exports = function(source){
38 if (e) callback(e); 37 if (e) callback(e);
39 else { 38 else {
40 var module = path.basename(request, '.purs'); 39 var module = path.basename(request, '.purs');
41 fs.readFile(path.join(opts[OPTIONS[OUTPUT]] || OUTPUT, module, 'index.js'), 'utf-8', function(e, output){ 40 fs.readFile(path.join(query[OUTPUT] || OUTPUT, module, 'index.js'), 'utf-8', function(e, output){
42 if (e) callback(e); 41 if (e) callback(e);
43 else callback(e, output); 42 else callback(e, output);
44 }); 43 });