Skip to content

Conversation

hi-ogawa
Copy link
Contributor

Description

React router documentation mentions client-only and server-only remix-run/react-router#14336. It would be nice to explain what this does on our side too.

Comment on lines 356 to 358
// this controls build-time validation of 'server-only' and 'client-only' imports.
// this is enabled by default.
validateImports: true,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooh, that's really nice!

hi-ogawa and others added 10 commits September 16, 2025 10:01
- Add comprehensive examples for server-only and client-only imports
- Include actual error messages developers will see
- Fix typo: valdiation -> validation
- Add cross-reference from validateImports option to detailed section
- Replace all TODO placeholders with meaningful content

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@hi-ogawa hi-ogawa marked this pull request as ready for review September 16, 2025 03:33
@hi-ogawa hi-ogawa changed the title docs(rsc): mention validateImports option for build time client-only and server-only validation docs(rsc): mention validateImports option for build time server-only and client-only validation Sep 16, 2025
@hi-ogawa hi-ogawa merged commit a96a6b2 into main Sep 16, 2025
19 of 20 checks passed
@hi-ogawa hi-ogawa deleted the 09-16-docs_rsc_mention_validateimports_options branch September 16, 2025 05:59
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