Skip to content

fix(docs): resolve SSR crash and webpack warnings in docs build#4968

Open
adrcotfas wants to merge 1 commit into
mainfrom
@adrcotfas/fix/docs
Open

fix(docs): resolve SSR crash and webpack warnings in docs build#4968
adrcotfas wants to merge 1 commit into
mainfrom
@adrcotfas/fix/docs

Conversation

@adrcotfas
Copy link
Copy Markdown
Collaborator

  • Inject polyfills/dev.js via getClientModules to define globalThis.DEV for both client and SSR bundles; needed because the new Switch pulls in react-native-reanimated which assumes this global exists
  • Alias @expo/vector-icons/MaterialCommunityIcons to material-design-icons (already present) and @react-native-vector-icons/get-image to false
  • Flatten CSS nesting in custom.css to fix CSS minimizer warnings about unsupported & selector syntax
  • Add isDynamicColorSupported = false to the non-Android DynamicTheme fallback, which was missing the re-exported symbol
  • Fix TypescaleKey re-export to use the type keyword

Motivation

Related issue

Test plan

- Inject polyfills/dev.js via getClientModules to define globalThis.__DEV__ for both client and SSR bundles; needed because the new Switch pulls in react-native-reanimated which assumes this global exists
- Alias @expo/vector-icons/MaterialCommunityIcons to material-design-icons (already present) and @react-native-vector-icons/get-image to false
- Flatten CSS nesting in custom.css to fix CSS minimizer warnings about unsupported & selector syntax
- Add isDynamicColorSupported = false to the non-Android DynamicTheme fallback, which was missing the re-exported symbol
- Fix TypescaleKey re-export to use the type keyword
@adrcotfas adrcotfas requested a review from satya164 May 28, 2026 13:45
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