Skip to content

Commit

Permalink
delete codeFrame prettier error when exist
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaslanjaka committed Oct 20, 2023
1 parent bde1817 commit af5308e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gulpfile.genr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export default async function gulpGenRoute(
return { route, jsx, value };
} catch (e) {
console.error('jsx cannot parse', route.source);
if (e.codeFrame) delete e.codeFrame;
console.error(e);
}
};
Expand Down

0 comments on commit af5308e

Please sign in to comment.