aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/index.js
diff options
context:
space:
mode:
authoreric <thul.eric@gmail.com>2017-08-24 19:58:05 -0400
committerGitHub <noreply@github.com>2017-08-24 19:58:05 -0400
commita8410d6d39fc84499b5f804802b5b6e5ea07e92f (patch)
tree6982a97f0bf8f9e7f3d5c15e179f7114ea309ddd /src/index.js
parentb881e30ce321b9758f071289c4f22650d6457371 (diff)
downloadpurs-loader-a8410d6d39fc84499b5f804802b5b6e5ea07e92f.tar.gz
purs-loader-a8410d6d39fc84499b5f804802b5b6e5ea07e92f.tar.zst
purs-loader-a8410d6d39fc84499b5f804802b5b6e5ea07e92f.zip
Generate module map once (#105)
Resolves #97
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/index.js b/src/index.js
index f90a218..eeabc4b 100644
--- a/src/index.js
+++ b/src/index.js
@@ -250,13 +250,6 @@ module.exports = function purescriptLoader(source, map) {
250 cache.compilationFinished = true; 250 cache.compilationFinished = true;
251 }) 251 })
252 .then(() => 252 .then(() =>
253 PsModuleMap.makeMap(options.src).then(map => {
254 debug('rebuilt module map after unknown module forced a recompilation');
255
256 cache.psModuleMap = map;
257 })
258 )
259 .then(() =>
260 Promise.map(cache.deferred, psModule => 253 Promise.map(cache.deferred, psModule =>
261 ide.load(psModule) 254 ide.load(psModule)
262 .then(() => toJavaScript(psModule)) 255 .then(() => toJavaScript(psModule))
@@ -318,13 +311,6 @@ module.exports = function purescriptLoader(source, map) {
318 } 311 }
319 }) 312 })
320 .then(() => 313 .then(() =>
321 PsModuleMap.makeMap(options.src).then(map => {
322 debug('rebuilt module map after compilation');
323
324 cache.psModuleMap = map;
325 })
326 )
327 .then(() =>
328 Promise.map(cache.deferred, psModule => 314 Promise.map(cache.deferred, psModule =>
329 toJavaScript(psModule) 315 toJavaScript(psModule)
330 .then(js => sourceMaps(psModule, js)) 316 .then(js => sourceMaps(psModule, js))