aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/index.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/index.js b/src/index.js
index 0b4ecf8..01ad5a6 100644
--- a/src/index.js
+++ b/src/index.js
@@ -225,12 +225,14 @@ module.exports = function purescriptLoader(source, map) {
225 filename: baseModulePath 225 filename: baseModulePath
226 }; 226 };
227 227
228 if (typeof this.extractPursDependenciesFromError === 'function') { 228 if (typeof this.describePscError === 'function') {
229 const dependencies = this.extractPursDependenciesFromError(error) || []; 229 const { dependencies = [], details } = this.describePscError(error, desc);
230 230
231 for (const dep of dependencies) { 231 for (const dep of dependencies) {
232 this.addDependency(dep); 232 this.addDependency(dep);
233 } 233 }
234
235 Object.assign(desc, details);
234 } 236 }
235 237
236 modules.push(desc); 238 modules.push(desc);