250401.5 · 722f8ba63caba00d2764420db0d5362a528519e1
test: update test for lateset swc
reading declarations
Changes to src/errors.ts. All files
@@ -16,7 +16,7 @@ export function isSwcError(error: unknown): error is SwcError { // Since swc throw an object, we need to wrap it in a proper error export function wrapAndReThrowSwcError(error: SwcError): never {- const errorHints = `${error.filename}:${error.startLine}${error.snippet}`;+ const errorHints = `${error.filename}:${error.startLine}\n${error.snippet}\n`; switch (error.code) { case "UnsupportedSyntax": { const unsupportedSyntaxError = new Error(error.message);