Skip to content

Mirror of upstream PR #82134#11

Closed
austinderek wants to merge 1 commit into
canaryfrom
wbinns/exp-to-turbopack
Closed

Mirror of upstream PR #82134#11
austinderek wants to merge 1 commit into
canaryfrom
wbinns/exp-to-turbopack

Conversation

@austinderek
Copy link
Copy Markdown
Owner

This PR mirrors upstream PR #82134.\n\nAuto-synced from upstream.

@austinderek austinderek force-pushed the wbinns/exp-to-turbopack branch from 99ab8a7 to 83b14c6 Compare July 29, 2025 21:27
…xt.js configs

This adds a new transform to `@next/codemod` that updates `next.config.{js,ts}` that updates the deprecated `experimental.turbo` property to the new top-level `turbopack` property.

Details:
- Only operates on files called next.config.js or next.config.ts, in the case the codemod tool is run on a large codebase.
- Updates _any_ object literal with a `experimental.turbo` property to use `turbopack`. Since this transform is constrained to Next.js configs, there shouldn’t be many false positives.
- Much of this change was written by Copilot. I simplified it, and refactored it to make it more readable and safe.

Test Plan:
- `pnpm run build && pnpm test -- -t next-experimental-turbo-to-turbopack` in the codemod directory
- Tested on several publicly available next configs that used the deprecated property
@austinderek austinderek force-pushed the wbinns/exp-to-turbopack branch from c076687 to a100bd3 Compare July 29, 2025 23:28
@staging
Copy link
Copy Markdown

staging Bot commented Jul 29, 2025

✅ This pull request was succesfully scanned and it was determined that it does not contain any changes that present immediate security concerns. If you would still like for it to be reviewed by an expert from our reviewer community, you can submit it manually via the HackerOne PullRequest dashboard.

⏱️ Latest scan covered changes up to commit a100bd3 (latest)

@austinderek austinderek deleted the wbinns/exp-to-turbopack branch July 30, 2025 20:20
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