- 22 Dec, 2025 4 commits
-
-
nextjs-bot authored
-
NAVEEN K authored
### What? Fixes a pnpm workspace resolution error where the `dev` script attempted to filter `@next/bundle-analyzer-ui`, which is not defined as a workspace package, resulting in: `No package found with name '@next/bundle-analyzer-ui' in workspace` ### Why? When running `pnpm dev`, Turbo tries to resolve all filtered packages. Referencing a non-existent workspace causes pnpm to fail early, breaking local development. ### How? Updates the `dev` script to explicitly exclude `@next/bundle-analyzer-ui` from the Turbo dev task, preventing pnpm from attempting to resolve a non-workspace package. No functional behavior is changed beyond avoiding the resolution error. Fixes #87636
-
Tobias Koppers authored
### What? Usually we persist the database every 2 minutes inside of `next build`, so you can continue from a partial build. But in CI that doesn't make sense, so this changes it to only persist on shutdown.
-
Benjamin Woodruff authored
Next 16.1 changed Turbopack's external packaging to use symlinks. Symlinks require elevated privileges on Windows if "Developer Mode" is not enabled. We can work around this by using junction points, which are mostly equivalent, but: - They only work with directories. - They can only point to absolute paths, not relative paths. Fixes #87334 Fixes #87607 Fixes #87603 Fixes #87605 Fixes #87559 Fixes #87604 Fixes #87601 Fixes #87599 Fixes #87598 Fixes #87596 Fixes #87595 Fixes #87592 Fixes #87590 Fixes #87589 Fixes #87473 Fixes #87586 Fixes #87585 Fixes #87584 Fixes #87583 Fixes #87582 Fixes #87576 Fixes #87575 Fixes #87574 Fixes #87573 Fixes #87572 Fixes #87571 Fixes #87568 ... and many more Also: Fixes #69858 (related issue about `output: 'standalone'` on Windows. ## Testing - Disable Developer Mode on Windows, reboot, and then verify that symlink creation fails. - Make a payload app with `pnpx create-payload-app` (just pick sqlite for the database when prompted), and then update the app with `pnpx @next/codemod upgrade 16.1.0`. - Add `output: 'standalone'` to the `next.config.js`. - Try running `pnpm build` --------- Co-authored-by:Tobias Koppers <tobias.koppers@googlemail.com>
-
- 20 Dec, 2025 3 commits
-
-
nextjs-bot authored
-
Joseph authored
-
Joseph authored
-
- 19 Dec, 2025 9 commits
-
-
Zack Tanner authored
So we can see if there are any outliers where a particular runner is failing tests more often than others.
-
nextjs-bot authored
-
Luke Sandberg authored
Revert "Revert "[turbopack] Set `liveness` of exports based on assignment analysis (#82802)"" (#87214) This reverts commit 7c8f84712020d388fb64ae5845a67cc370798115 which reverted ba227046. It was reverted because it triggered a bug in the payloadcms system which relied on distinguishing between server components and client references based on whether or not the `Function.prototype.name` property was the empty string. This was fixed in https://github.com/payloadcms/payload/pull/13931 which has now been released for a while. The triggering issue was that this PR gives SWC more opportunities to delete function names and thus functions become anonymous. The effect can also be seen in some of the snapshot updates. The original PR description was: Use the analysis added in #82763 to annotate exports as 'live' or 'const' This triggers previously implemented support to then bind the resulting values as 'readonly values' instead of getter functions. This helps with both code size and execution time since parsing/allocating even these tiny getter functions is not free.
-
Zack Tanner authored
These tests aren't resilient to changes in router behavior after extensive refactors. What looks to be happening is a race between the prefetch being issued and the click firing: 1. Cache expires -> refetch prefetch is triggered 2. Click happens while prefetch is in-flight -> route entry is Pending 3. Since no fulfilled cache entry exists, `navigate()` falls through to `navigateDynamicallyWithNoPrefetch()` 4. This issues a full dynamic request 5. The full dynamic response is favored and skips the loading state This ensures that we are waiting for network activity to finish before navigating.
-
Will Binns-Smith authored
This: - Removes the uncompressed/compressed toggle in favor of just using compressed sizes when sizing treemap nodes - Fixes the width of the client/server and file type triggers so that they don't reflow horizontally when their content changes Fixes PACK-6295 Fixes PACK-6298
-
Joseph authored
Co-authored-by:Rich Haines <hello@richardhaines.dev>
-
Delba de Oliveira authored
This PR adds instructions on how to run and navigate the new turbopack bundle analyzer to the existing [Optimizing package bundling guide ](https://nextjs.org/docs/app/guides/package-bundling). Todo: - [x] Embed video - [x] Add image for import chain --------- Co-authored-by:
Luke Sandberg <lukesandberg@users.noreply.github.com> Co-authored-by:
graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com> Co-authored-by:
Joseph <joseph.chamochumbi@vercel.com> Co-authored-by:
Rich Haines <hello@richardhaines.dev> Co-authored-by:
vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
-
Eng Zer Jun authored
In the **When to use Server and Client Components?** section of [Server and Client Components](https://nextjs.org/docs/app/getting-started/server-and-client-components) page, the code block should highlight line 17 `<LikeButton likes={post.likes} />` to demonstrate that it is passing a prop to the component.  --------- Co-authored-by:
Joseph <sephxd1234@gmail.com> Co-authored-by:
Joseph <joseph.chamochumbi@vercel.com>
-
Tobias Koppers authored
### What? Simplifies the graph traversal. Allows the GraphStore to store edges and nodes. This no longer forces us to abuse the node type to store edge info, which actually has lead to a race condition problem which made the module graph non-deterministic. Removes `skip_duplicated` and made the AdjacencyMap always skip duplicates. That simplifies the implementation. We never not skipped duplicates and that rarely makes sense anyway since any cycle would make it traverse forever... Also removed a bunch of unused stuff...
-
- 18 Dec, 2025 14 commits
-
-
nextjs-bot authored
-
nextjs-bot authored
-
Joseph authored
-
Joseph authored
Adding CLI docs for next experimental-analyze --------- Co-authored-by:vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
-
nextjs-bot authored
-
nextjs-bot authored
-
Zack Tanner authored
Reverts vercel/next.js#86752 This has consequences when `.next` is in `exclude`. Reverting for now.
-
nextjs-bot authored
-
Jiachi Liu authored
-
Cong-Cong Pan authored
Rspack now enables persistent caching by default. ## Performance Comparison ### Pages Router I benchmarked performance using this repo: https://github.com/SyMind/chakra-ui-docs/tree/next-rspack to test the Next.js pages router. I tested the performance with the following steps: 1. Execute `pnpm run dev` 2. Wait for the server to be ready (indicated by the 'Ready' message) 3. Run curl on the root endpoint (/) Each build was run 5 times, and the shortest time to reach "Compiled successfully" was recorded. Test environment: Apple M1 Pro CPU | Tool | Build without cache | Build with cache | Dev without cache | Dev with cache | |-------------|---------------------|------------------|---------------------------------|----------------| | Rspack | 3.8s | 2.6s | 1.7s | 3ms | | Webpack | 14.0s | 4.0s | 7.8s | 3.2s | ### App Router I benchmarked performance using this repo: https://github.com/SyMind/shadcn-ui/tree/next-rspack to test the Next.js app router. I tested the performance with the following steps: 1. Execute `pnpm run dev` or `pnpm run build` 2. Wait for the server to be ready (indicated by the 'Ready' message) 3. Run curl on the root endpoint (/) Each build was run 5 times, and the shortest time to reach "Compiled successfully" was recorded. Test environment: Apple M1 Pro CPU | Bundler | Build (No Cache) | Build (Cache) | Dev (No Cache) | Dev (Cache) | |------------|----------------------|-------------------|--------------------|-----------------| | Rspack | 12.3s | 5.9s | 7.1s | 1941ms | | Webpack | 27.0s | 13.0s | 11s | 9.6s | ## About Rspack Persistent Cache Strategy > packages/next/src/server/dev/hot-reloader-rspack.ts Rspack's persistent caching differs from Webpack in how it manages module graphs. While Webpack incrementally updates modules, Rspack operates on complete module graph snapshots for cache restoration. Problem: - Next.js dev server starts with no page modules in the initial entry points - When Rspack restores from persistent cache, it finds no modules and purges the entire module graph - Later page requests find no cached module information, preventing cache reuse Solution: - Track successfully built page entries after each compilation - Restore these entries on dev server restart to maintain module graph continuity - This ensures previously compiled pages can leverage persistent cache for faster builds ## Note I have updated the test case configuration in `test/integration/telemetry/next.config.use-cache` to disable persistent cache. This is because, whether using webpack or Rspack, when persistent caching is enabled, modules are no longer recompiled by loaders, which prevents the Telemetry plugin from collecting information. Please note that this issue also exists with webpack. You can reproduce it locally by running `pnpm run test test/integration/telemetry/test/config.test.js` twice.
-
Will Binns-Smith authored
-
Luke Sandberg authored
Drop some references so there is a plausible path to updating these in the future
-
Will Binns-Smith authored
-
nextjs-bot authored
-
- 17 Dec, 2025 10 commits
-
-
nextjs-bot authored
-
Sebastian "Sebbie" Silbermann authored
-
Zack Tanner authored
Fixes a few failing deployment tests that weren't validated when landed last week. - next.cliOutput is not available when deployed because it's part of runtime logs - status code changes on Vercel because POSTing to a static 404 page is treated differently.
-
Will Binns-Smith authored
This functionality was added late in #87258 but was broken as we needed to pass this along to the Rust side. We'd also need to be able to write to arbitrary absolute paths there, so let's punt on it. Test Plan: e2e tests
-
Hendrik Liebau authored
-
nextjs-bot authored
-
Will Binns-Smith authored
-
Vercel Release Bot authored
This auto-generated PR updates font data with latest available Co-authored-by:nextjs-bot <it+nextjs-bot@vercel.com>
-
Will Binns-Smith authored
The top bar is getting quite wide with all of its button toggle groups. This: - Converts the Compressed/Uncompressed and Client/Server toggles to shadcn `<Select>`s - Adds a custom `<MultiSelect>` implementation since this is missing in shadcn. This composes shadcn’s popovers and a series of checkboxes, along with accessibility attributes and keyboard shortcuts. - Uses this `<MultiSelect>` for the type filter - Removes the divider between these since there aren’t any groups left to divide <img width="1547" height="719" alt="image" src="https://github.com/user-attachments/assets/4041f6b7-2a47-4e17-b020-448ac0103740" />
-
Cong-Cong Pan authored
update @next/rspack-core version to 1.0.2 and update the snapshot other changes: - packages/next/src/build/webpack-config.ts Adjusted configuration to account for differences in default node config between Rspack and Webpack. - packages/next/src/shared/lib/format-webpack-messages.ts Added a fallback to moduleIdentifier in cases where Rspack does not correctly populate moduleName.
-