aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/index.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index fce6394..ec9af5f 100644
--- a/src/index.js
+++ b/src/index.js
@@ -217,6 +217,14 @@ module.exports = function purescriptLoader(source, map) {
217 this.addDependency(resolved); 217 this.addDependency(resolved);
218 } 218 }
219 } 219 }
220
221 if (typeof this.extractPursDependenciesFromError === 'function') {
222 const dependencies = this.extractPursDependenciesFromError(error) || [];
223
224 for (const dep of dependencies) {
225 this.addDependency(dep);
226 }
227 }
220 } 228 }
221 229
222 CACHE_VAR.errors.push(pscMessage); 230 CACHE_VAR.errors.push(pscMessage);