aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PursLoader/Loader.purs
diff options
context:
space:
mode:
authoreric thul <thul.eric@gmail.com>2015-12-25 19:24:02 -0500
committereric thul <thul.eric@gmail.com>2015-12-25 19:24:02 -0500
commitd78112147d02e263a5b000cb0b3b9ff84aa5c89a (patch)
tree108fbfe1442e5c7ef42a33dfde0655fa378d3fdc /src/PursLoader/Loader.purs
parent9764d2a7d5e6d9cf081dcbc162dac01f95d452b3 (diff)
downloadpurs-loader-d78112147d02e263a5b000cb0b3b9ff84aa5c89a.tar.gz
purs-loader-d78112147d02e263a5b000cb0b3b9ff84aa5c89a.tar.zst
purs-loader-d78112147d02e263a5b000cb0b3b9ff84aa5c89a.zip
Updating bundle output option name
Diffstat (limited to 'src/PursLoader/Loader.purs')
-rw-r--r--src/PursLoader/Loader.purs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PursLoader/Loader.purs b/src/PursLoader/Loader.purs
index 0cd077d..affce53 100644
--- a/src/PursLoader/Loader.purs
+++ b/src/PursLoader/Loader.purs
@@ -54,7 +54,7 @@ loader ref source = do
54 54
55 resourceDir = dirname (resourcePath ref) 55 resourceDir = dirname (resourcePath ref)
56 56
57 modulePath = (\opts -> relative resourceDir opts.pscBundle) <$> options 57 modulePath = (\opts -> relative resourceDir opts.bundleOutput) <$> options
58 58
59 result = (\path name -> "module.exports = require('" ++ path ++ "')['" ++ name ++ "'];") <$> modulePath <*> moduleName 59 result = (\path name -> "module.exports = require('" ++ path ++ "')['" ++ name ++ "'];") <$> modulePath <*> moduleName
60 60