aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--package.json3
-rw-r--r--src/index.js2
2 files changed, 4 insertions, 1 deletions
diff --git a/package.json b/package.json
index f2b95af..ae8d7eb 100644
--- a/package.json
+++ b/package.json
@@ -50,5 +50,8 @@
50 "devDependencies": { 50 "devDependencies": {
51 "babel-cli": "^6.8.0", 51 "babel-cli": "^6.8.0",
52 "babel-preset-es2015": "^6.6.0" 52 "babel-preset-es2015": "^6.6.0"
53 },
54 "peerDependencies": {
55 "purescript": ">=0.12.2"
53 } 56 }
54} 57}
diff --git a/src/index.js b/src/index.js
index 8a2e468..28246e3 100644
--- a/src/index.js
+++ b/src/index.js
@@ -195,7 +195,7 @@ module.exports = function purescriptLoader(source, map) {
195 const matchErrorsSeparator = /\n(?=Error)/; 195 const matchErrorsSeparator = /\n(?=Error)/;
196 const errors = pscMessage.split(matchErrorsSeparator); 196 const errors = pscMessage.split(matchErrorsSeparator);
197 for (const error of errors) { 197 for (const error of errors) {
198 const matchErrLocation = /at (.+\.purs) line (\d+), column (\d+) - line (\d+), column (\d+)/; 198 const matchErrLocation = /at (.+\.purs):(\d+):(\d+) - (\d+):(\d+) \(line \2, column \3 - line \4, column \5\)/;
199 const [, filename] = matchErrLocation.exec(error) || []; 199 const [, filename] = matchErrLocation.exec(error) || [];
200 if (!filename) continue; 200 if (!filename) continue;
201 201