aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoreric <thul.eric@gmail.com>2015-08-11 23:20:08 -0400
committereric <thul.eric@gmail.com>2015-08-11 23:20:08 -0400
commit91ac60d1d5d1baa10214e2b7786d164cc6b8d919 (patch)
treedaab678214d78755b34c93356826fbf4b375c88d
parentce0ba10794f719a54b54e4353598d9c199db43a3 (diff)
parentbbd2a7af414f2a66280383ac2d78c6cddb4f7693 (diff)
downloadpurs-loader-91ac60d1d5d1baa10214e2b7786d164cc6b8d919.tar.gz
purs-loader-91ac60d1d5d1baa10214e2b7786d164cc6b8d919.tar.zst
purs-loader-91ac60d1d5d1baa10214e2b7786d164cc6b8d919.zip
Merge pull request #29 from ethul/topic/issue-28
Compiling after adding webpack dependencies
-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