aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authoreric thul <thul.eric@gmail.com>2015-08-11 23:19:16 -0400
committereric thul <thul.eric@gmail.com>2015-08-11 23:19:16 -0400
commitbbd2a7af414f2a66280383ac2d78c6cddb4f7693 (patch)
treedaab678214d78755b34c93356826fbf4b375c88d /src
parentce0ba10794f719a54b54e4353598d9c199db43a3 (diff)
downloadpurs-loader-bbd2a7af414f2a66280383ac2d78c6cddb4f7693.tar.gz
purs-loader-bbd2a7af414f2a66280383ac2d78c6cddb4f7693.tar.zst
purs-loader-bbd2a7af414f2a66280383ac2d78c6cddb4f7693.zip
Compiling after adding webpack dependencies
Resolves #28
Diffstat (limited to 'src')
-rw-r--r--src/PursLoader/Loader.purs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PursLoader/Loader.purs b/src/PursLoader/Loader.purs
index 3cb99cd..b579577 100644
--- a/src/PursLoader/Loader.purs
+++ b/src/PursLoader/Loader.purs
@@ -68,8 +68,6 @@ loader' ref source = do
68 ffis = fromMaybe [] (loaderFFIOption parsed) 68 ffis = fromMaybe [] (loaderFFIOption parsed)
69 opts = pscOptions parsed 69 opts = pscOptions parsed
70 70
71 spawn pscCommand (srcs <> opts)
72
73 srcss <- globAll srcs 71 srcss <- globAll srcs
74 ffiss <- globAll ffis 72 ffiss <- globAll ffis
75 73
@@ -91,6 +89,8 @@ loader' ref source = do
91 89
92 fromMaybe (pure unit) ((\path -> liftEff (addDependency ref path)) <$> foreignPath) 90 fromMaybe (pure unit) ((\path -> liftEff (addDependency ref path)) <$> foreignPath)
93 91
92 spawn pscCommand (srcs <> opts)
93
94 return result 94 return result
95 95
96loader :: forall eff. LoaderRef -> String -> Eff (Effects eff) Unit 96loader :: forall eff. LoaderRef -> String -> Eff (Effects eff) Unit