Skip to content

Next 16 support#4544

Open
ScriptedAlchemy wants to merge 3 commits intonextjs-mf-v9-e2e-stabilize-20260207from
cursor/next-16-support-d8ec
Open

Next 16 support#4544
ScriptedAlchemy wants to merge 3 commits intonextjs-mf-v9-e2e-stabilize-20260207from
cursor/next-16-support-d8ec

Conversation

@ScriptedAlchemy
Copy link
Member

Description

This PR implements support for Next.js 16 in nextjs-mf. The core issue addressed was the ModuleFederationPlugin.apply call being commented out, which prevented module federation from functioning. This change re-enables the plugin and includes necessary compatibility fixes for Next.js 16 runtime entry resolution and loader rule sanitization to ensure proper federation.

Related Issue

Addresses Next.js 16 compatibility for nextjs-mf.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.
Open in Web Open in Cursor 

@cursor
Copy link

cursor bot commented Mar 14, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@changeset-bot
Copy link

changeset-bot bot commented Mar 14, 2026

⚠️ No Changeset found

Latest commit: dcc2e5c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ScriptedAlchemy ScriptedAlchemy marked this pull request as ready for review March 14, 2026 05:55
@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 14, 2026

Open in StackBlitz

@module-federation/devtools

pnpm add https://pkg.pr.new/@module-federation/devtools@dcc2e5c

@module-federation/cli

pnpm add https://pkg.pr.new/@module-federation/cli@dcc2e5c

create-module-federation

pnpm add https://pkg.pr.new/create-module-federation@dcc2e5c

@module-federation/data-prefetch

pnpm add https://pkg.pr.new/@module-federation/data-prefetch@dcc2e5c

@module-federation/dts-plugin

pnpm add https://pkg.pr.new/@module-federation/dts-plugin@dcc2e5c

@module-federation/enhanced

pnpm add https://pkg.pr.new/@module-federation/enhanced@dcc2e5c

@module-federation/error-codes

pnpm add https://pkg.pr.new/@module-federation/error-codes@dcc2e5c

@module-federation/esbuild

pnpm add https://pkg.pr.new/@module-federation/esbuild@dcc2e5c

@module-federation/managers

pnpm add https://pkg.pr.new/@module-federation/managers@dcc2e5c

@module-federation/manifest

pnpm add https://pkg.pr.new/@module-federation/manifest@dcc2e5c

@module-federation/metro

pnpm add https://pkg.pr.new/@module-federation/metro@dcc2e5c

@module-federation/metro-plugin-rnc-cli

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnc-cli@dcc2e5c

@module-federation/metro-plugin-rnef

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnef@dcc2e5c

@module-federation/modern-js

pnpm add https://pkg.pr.new/@module-federation/modern-js@dcc2e5c

@module-federation/modern-js-v3

pnpm add https://pkg.pr.new/@module-federation/modern-js-v3@dcc2e5c

@module-federation/native-federation-tests

pnpm add https://pkg.pr.new/@module-federation/native-federation-tests@dcc2e5c

@module-federation/native-federation-typescript

pnpm add https://pkg.pr.new/@module-federation/native-federation-typescript@dcc2e5c

@module-federation/nextjs-mf

pnpm add https://pkg.pr.new/@module-federation/nextjs-mf@dcc2e5c

@module-federation/node

pnpm add https://pkg.pr.new/@module-federation/node@dcc2e5c

@module-federation/retry-plugin

pnpm add https://pkg.pr.new/@module-federation/retry-plugin@dcc2e5c

@module-federation/rsbuild-plugin

pnpm add https://pkg.pr.new/@module-federation/rsbuild-plugin@dcc2e5c

@module-federation/rspack

pnpm add https://pkg.pr.new/@module-federation/rspack@dcc2e5c

@module-federation/rspress-plugin

pnpm add https://pkg.pr.new/@module-federation/rspress-plugin@dcc2e5c

@module-federation/runtime

pnpm add https://pkg.pr.new/@module-federation/runtime@dcc2e5c

@module-federation/runtime-core

pnpm add https://pkg.pr.new/@module-federation/runtime-core@dcc2e5c

@module-federation/runtime-tools

pnpm add https://pkg.pr.new/@module-federation/runtime-tools@dcc2e5c

@module-federation/sdk

pnpm add https://pkg.pr.new/@module-federation/sdk@dcc2e5c

@module-federation/storybook-addon

pnpm add https://pkg.pr.new/@module-federation/storybook-addon@dcc2e5c

@module-federation/third-party-dts-extractor

pnpm add https://pkg.pr.new/@module-federation/third-party-dts-extractor@dcc2e5c

@module-federation/treeshake-frontend

pnpm add https://pkg.pr.new/@module-federation/treeshake-frontend@dcc2e5c

@module-federation/treeshake-server

pnpm add https://pkg.pr.new/@module-federation/treeshake-server@dcc2e5c

@module-federation/typescript

pnpm add https://pkg.pr.new/@module-federation/typescript@dcc2e5c

@module-federation/utilities

pnpm add https://pkg.pr.new/@module-federation/utilities@dcc2e5c

@module-federation/webpack-bundler-runtime

pnpm add https://pkg.pr.new/@module-federation/webpack-bundler-runtime@dcc2e5c

@module-federation/bridge-react

pnpm add https://pkg.pr.new/@module-federation/bridge-react@dcc2e5c

@module-federation/bridge-react-webpack-plugin

pnpm add https://pkg.pr.new/@module-federation/bridge-react-webpack-plugin@dcc2e5c

@module-federation/bridge-shared

pnpm add https://pkg.pr.new/@module-federation/bridge-shared@dcc2e5c

@module-federation/bridge-vue3

pnpm add https://pkg.pr.new/@module-federation/bridge-vue3@dcc2e5c

@module-federation/inject-external-runtime-core-plugin

pnpm add https://pkg.pr.new/@module-federation/inject-external-runtime-core-plugin@dcc2e5c

commit: dcc2e5c

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