Skip to content

docs: public compileJsx facade — compile-on-save flow#91

Merged
Aitthi merged 1 commit into
mainfrom
docs/public-compilejsx
Jun 13, 2026
Merged

docs: public compileJsx facade — compile-on-save flow#91
Aitthi merged 1 commit into
mainfrom
docs/public-compilejsx

Conversation

@Aitthi

@Aitthi Aitthi commented Jun 13, 2026

Copy link
Copy Markdown
Member

Follows 89d225a (0.1.54-alpha), which exposed compileJsx as a public typed 2-arg export from brustjs.

  • Dynamic Templates doc: the "Pairing with the compiler" section is rewritten to "Compile JSX on save" — imports the public compileJsx (not "the NAPI binding"), shows the real return shape { template, islandsJson, componentsJson, warnings }, the throw-on-invalid contract, and the full compileJsx → templates.register compile-on-save flow. Fixed the dangling /docs/native-routes link → /docs/rendering.
  • architecture.md compiler section: notes the typed 2-arg compileJsx(source, path) facade (runtime/compile-jsx.ts) exported from the entry for tooling/compile-on-save, pairing with templates.register.

Docs-only (no package change). docs-site test 7/0, biome green.

🤖 Generated with Claude Code

Follows commit 89d225a which exposed compileJsx as a typed 2-arg export.
Rewrites the Dynamic Templates 'Compile JSX on save' section to import the
public compileJsx (was 'NAPI binding'), shows the real return shape + throw-on-
invalid + compileJsx→templates.register flow; notes the public facade in
architecture.md's compiler section.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Aitthi Aitthi merged commit 847e432 into main Jun 13, 2026
7 checks passed
@Aitthi Aitthi deleted the docs/public-compilejsx branch June 13, 2026 05:22
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.

1 participant