[docs-infra] Update docs to support turbopack mode#4888
Open
brijeshb42 wants to merge 2 commits into
Open
Conversation
commit: |
Bundle size
PerformanceTotal duration: 1,200.00 ms -49.01 ms(-3.9%) | Renders: 50 (+0) | Paint: 1,830.19 ms -65.20 ms(-3.4%)
10 tests within noise — details Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
brijeshb42
commented
May 22, 2026
|
|
||
| const EAGER_COUNT = 2; | ||
|
|
||
| export function rehypeEagerCodeBlocks() { |
Contributor
Author
There was a problem hiding this comment.
Default exports are read through string based plugin paths.
brijeshb42
commented
May 22, 2026
| "#test-utils": "./test/index.ts", | ||
| "#formatErrorMessage": "@base-ui/utils/formatErrorMessage" | ||
| }, | ||
| "type": "commonjs", |
Contributor
Author
There was a problem hiding this comment.
Explicit type to commonjs leads turbopack to fail with error -
./packages/utils/src/warn.ts
Specified module format (CommonJs) is not matching the module format of the source code (EcmaScript Modules)
The CommonJs module format was specified in the package.json that is affecting this source file or by using an special extension, but Ecmascript import/export syntax is used in the source code.
The module was automatically converted to an EcmaScript module, but that is in conflict with the specified module format. Either change the "type" field in the package.json or replace EcmaScript import/export syntax with CommonJs syntas in the source file.So we can either omit the field (as in PR) or add a nested package.json inside src stating type: module.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR
loadPrecomputedTypes(1–2s per types.ts) in both modes. We need to improve this on the docs-infra package side.rm -rf .next)Ready in~3× faster ready time.
//react/components/popover/react/components/dialog/react/components/select/react/components/comboboxpopover/page.mdxPopoverPopup.tsx(workspace pkg)CodeBlock.tsxrm -rf .next export)@dav-is When building the docs, I got a bunch of -
Also, I need you to check if everything is working as far as docs-infra related transforms are concerned since you have larger context. I have already verified that a bunch of pages are working as expected.