Skip to content

Conversation

@brainkim
Copy link
Member

Summary

  • Fix string literal escaping in acorn JSX transform - multi-line strings in JSX attributes were outputting raw newlines causing syntax errors
  • Add formatted syntax error messages with code context and pointer (similar to Babel)
  • Add 404 page support with catch-all route and static 404.html generation

Syntax Error Example

Before: SyntaxError: Unexpected token (4:22)

After:

SyntaxError: Unexpected token (4:22)

     2 |   const x = 1;
     3 |   return (
>    4 |     <div onclick={foo(}>hello</div>
       |                       ^
     5 |   );
     6 | }

🤖 Generated with Claude Code

brainkim and others added 2 commits January 24, 2026 10:29
- Fix string literal escaping in acorn JSX transform by adding Literal
  handler that uses JSON.stringify. Fixes multi-line strings in JSX
  attributes which were causing syntax errors.
- Add formatted syntax error messages with code context and pointer
- Add 404 page with NotFoundView component
- Add catch-all route for 404 responses
- Generate 404.html during static site generation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants