feat!: upgrade to Next.js 16 and replace webpack with Turbopack - #958
Draft
pdavies88 wants to merge 1 commit into
Draft
feat!: upgrade to Next.js 16 and replace webpack with Turbopack#958pdavies88 wants to merge 1 commit into
pdavies88 wants to merge 1 commit into
Conversation
Next.js 16 builds with Turbopack by default and hard-fails when a webpack config is present, so the config-injection mechanism has been rewritten. - remove the webpack ModifySourcePlugin and inject the headstartwp config through a Turbopack loader rule emitted by withHeadstartWPConfig - add injectHeadstartWPConfigLoader, a dependency-free loader that inserts the bootstrap after the directive prologue so 'use client'/'use server' is preserved, and imports the config by a path relative to the module (Turbopack resolves a leading / against the project root) - split client/server config via Turbopack's built-in `browser` condition - drop the linaria/wyw-in-js integration and the schema-utils, loader-utils and copy-webpack-plugin dependencies - always emit images.remotePatterns; drop the Next < 14 domains fallback - rename middleware.* to proxy.* across the example projects - remove the `eslint` next config option (removed in Next.js 16) - replace @next/bundle-analyzer with `next experimental-analyze` React stays on 18.3.1 so the Pages Router remains supported. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VMatBaQUrPS9AhSJmkF2vF
🦋 Changeset detectedLatest commit: 033ea24 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Next.js 16 builds with Turbopack by default and hard-fails when a webpack config is present, so the config-injection mechanism has been rewritten.
browserconditioneslintnext config option (removed in Next.js 16)next experimental-analyzeReact stays on 18.3.1 so the Pages Router remains supported.
Claude-Session: https://claude.ai/code/session_01VMatBaQUrPS9AhSJmkF2vF
Description of the Change
Closes #
How to test the Change
Changelog Entry
Credits
Props @username, ...
Checklist: