fix: avoid Turbopack PostCSS loader race - #2265
Merged
Merged
Conversation
Member
Author
|
hey @greptileai, please re-review the PR |
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.
The first production build after the Bun migration failed in Next.js 16.3 with
__turbopack_context__.a is not a functionwhile loading PostCSS. This matches the upstream cold-build runtime race: vercel/next.js#96619.Rename the existing CommonJS config to
postcss.config.cjsto avoid its asynchronous.jsloader. The configuration contents, Tailwind/Autoprefixer plugins, dependencies, and build commands remain identical.Validation: fresh Bun 1.4.0 frozen install; uncached production Turbopack build passed all 6 tasks; Next config discovery and plugin parity checked; generated failing wrapper absent; scoped Biome passed. The Vercel preview also passed all 6 build tasks with 0 Turbo cache hits and deployed successfully: https://vercel.com/mc-ilroy/cap-web/HuH92gBL33AX8CaCTcgZrFvbN1Jw.