Repository navigation
[docs-infra] Fix deferred demos and sandbox exports - #1947
Conversation
Deploy previewBundle sizeTotal Size Change: 🔺+110B(0.00%) - Total Gzip Change: 🔺+38B(0.00%) Show details for 79 more bundles@mui/internal-docs-infra/useDemo parsed: 🔺+110B(+0.18%) gzip: 🔺+38B(+0.19%) PerformanceNo regressions in 8 benchmarks · ran 58s · details Check out the code infra dashboard for more information about this PR. |
e830648 to
1875999
Compare
Resolvers may again omit packages and keep peers resolved by sibling packages; pinned imports are still always exported. Deferred precompute reuse no longer bails out on undefined option properties, and the cache-miss path now asserts the deferred module's own dependencies.
Reuse demo precompute within each webpack compilation and track imported files for watch rebuilds. Preserve pinned sandbox versions while resolving adapter and product peers from complete import paths; custom resolvers may still omit packages and keep peers resolved for sibling packages.
Required by mui/mui-x#23851 and mui/material-ui#49464. Publish docs-infra first.
Validation: 6,307 tests; types, lint, formatting, builds, docs validation and consumer integration pass.
Accepted trade-offs