@noma/helper-modules
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "@noma/helper-modules", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "", | ||
@@ -33,3 +33,3 @@ "main": "./src/index.js", | ||
"type": "module", | ||
"gitHead": "e12031f0ce2e9237f084f63b252f4caff5b2c597" | ||
"gitHead": "2c4d138ad717eac089214f486d49d57add3e0bd6" | ||
} |
@@ -12,3 +12,16 @@ import resolve from 'resolve' | ||
return import(href) | ||
return import(href).catch(err => { | ||
if (err instanceof SyntaxError && !err.stack.includes(file)) { | ||
const newErrorWithFilename = new SyntaxError(err.message) | ||
newErrorWithFilename.stack = err.stack.replace( | ||
/^SyntaxError/, | ||
`SyntaxError[ @${file} ]` | ||
) | ||
throw newErrorWithFilename | ||
} | ||
throw err | ||
}) | ||
} | ||
@@ -15,0 +28,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5717
110