amaro 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/errors.js CHANGED
@@ -3,7 +3,9 @@ export function isSwcError(error) {
3
3
  return error.code !== void 0;
4
4
  }
5
5
  export function wrapAndReThrowSwcError(error) {
6
- const errorHints = `${error.filename}:${error.startLine}${error.snippet}`;
6
+ const errorHints = `${error.filename}:${error.startLine}
7
+ ${error.snippet}
8
+ `;
7
9
  switch (error.code) {
8
10
  case "UnsupportedSyntax": {
9
11
  const unsupportedSyntaxError = new Error(error.message);