diff options
author | eric thul <thul.eric@gmail.com> | 2017-02-25 09:55:18 -0500 |
---|---|---|
committer | eric thul <thul.eric@gmail.com> | 2017-02-25 09:55:18 -0500 |
commit | 4305f5b0053d6fd2887b364c5da0a1ca6c06fc54 (patch) | |
tree | 541cfb21319f8cb6a751132ff0fdb09addfc000f /src/index.js | |
parent | 03f52cb367cc8f1e57c515e4ac61c49cb72773eb (diff) | |
download | purs-loader-4305f5b0053d6fd2887b364c5da0a1ca6c06fc54.tar.gz purs-loader-4305f5b0053d6fd2887b364c5da0a1ca6c06fc54.tar.zst purs-loader-4305f5b0053d6fd2887b364c5da0a1ca6c06fc54.zip |
Handle missing module and adding debugging
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js index f4a6dff..6fb2fce 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -149,7 +149,7 @@ module.exports = function purescriptLoader(source, map) { | |||
149 | if (!cache.compilationStarted) { | 149 | if (!cache.compilationStarted) { |
150 | return Psc.compile(psModule) | 150 | return Psc.compile(psModule) |
151 | .then(() => PsModuleMap.makeMap(options.src).then(map => { | 151 | .then(() => PsModuleMap.makeMap(options.src).then(map => { |
152 | debug('rebuilt module map'); | 152 | debug('rebuilt module map after compile'); |
153 | cache.psModuleMap = map; | 153 | cache.psModuleMap = map; |
154 | })) | 154 | })) |
155 | .then(() => Promise.map(cache.deferred, psModule => { | 155 | .then(() => Promise.map(cache.deferred, psModule => { |