Skip to content

docs(transformer): document JSX pragma comment scanning behavior#1016

Merged
Dunqing merged 1 commit intomainfrom
docs/jsx-pragma-scanning
Mar 25, 2026
Merged

docs(transformer): document JSX pragma comment scanning behavior#1016
Dunqing merged 1 commit intomainfrom
docs/jsx-pragma-scanning

Conversation

@Dunqing
Copy link
Copy Markdown
Member

@Dunqing Dunqing commented Mar 25, 2026

Summary

  • Add a "Pragma Comment Scanning" section to the JSX transformer docs explaining that Oxc only scans comments before the first statement for pragmas
  • Include a code example showing which pragma comments are recognized vs ignored
  • Note the comparison with other tools (TypeScript/SWC vs Babel/esbuild)

Requested in oxc-project/oxc#20675 (review)

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Clarify that Oxc only scans comments before the first statement for
JSX pragmas, aligning with TypeScript and SWC behavior. This was
requested in oxc-project/oxc#20675 review feedback.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 25, 2026

Deploy Preview for oxc-project ready!

Name Link
🔨 Latest commit 574f5cb
🔍 Latest deploy log https://app.netlify.com/projects/oxc-project/deploys/69c32da000e543000894fb3a
😎 Deploy Preview https://deploy-preview-1016--oxc-project.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Dunqing Dunqing requested a review from sapphi-red March 25, 2026 00:57
@Dunqing Dunqing merged commit f9fd22a into main Mar 25, 2026
6 checks passed
@Dunqing Dunqing deleted the docs/jsx-pragma-scanning branch March 25, 2026 08:41
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