Skip to content

Cursor/ci failures investigation b06f#4462

Merged
ScriptedAlchemy merged 55 commits intocursor/migration-from-nx-webpack-to-vanilla-webpack-c57cfrom
cursor/ci-failures-investigation-b06f
Feb 19, 2026
Merged

Cursor/ci failures investigation b06f#4462
ScriptedAlchemy merged 55 commits intocursor/migration-from-nx-webpack-to-vanilla-webpack-c57cfrom
cursor/ci-failures-investigation-b06f

Conversation

@ScriptedAlchemy
Copy link
Copy Markdown
Member

Description

Related Issue

Types of changes

  • Docs change / refactoring / dependency upgrade
  • 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.

cursoragent and others added 30 commits February 17, 2026 20:44
Co-authored-by: zackary.l.jackson <zackary.l.jackson@gmail.com>
Use tsdown with nx run-commands for migrated packages and align export and type outputs for publint.
Remove legacy rollup configs and add shared migration scaffolding.

Co-authored-by: Cursor <cursoragent@cursor.com>
Align package build metadata with tsdown output and type extension updates.
Remove CJS fallback from ESM runtime alias resolution for consistent module format selection.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use .d.mts for import types so exports match emitted ESM declaration files.

Co-authored-by: Cursor <cursoragent@cursor.com>
ScriptedAlchemy and others added 22 commits February 18, 2026 00:10
Use tsdown define-based format branching in sdk node loader.
Remove nextjs-mf rollup leftovers and emit both cjs and esm outputs.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace tsup-based build configs and Nx commands with tsdown for the remaining package set, and update native-federation-tests runtime usage/types to tsdown. Remove obsolete tsup configs and refresh the lockfile.

Co-authored-by: Cursor <cursoragent@cursor.com>
Centralize non-webpack require access in sdk bundler helpers and switch
node/sdk runtime loaders to explicit IS_ESM_BUILD if/else branches so ESM
outputs avoid eval('require') while CJS keeps native require behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>
Remove unused legacy rollup config files left after migration.
Align package exports with emitted cjs/mjs and d.cts/d.mts outputs.
Fail fast when data-prefetch runtime plugin files cannot be resolved.

Co-authored-by: Cursor <cursoragent@cursor.com>
…nching

Fix dts-plugin publint failure by emitting .mjs for ESM output and
splitting exports into proper import/require conditions. Fix node
runtimePlugin and stratagies to use createRequire(import.meta.url) in
ESM branches instead of bare require('node:module').

Co-authored-by: Cursor <cursoragent@cursor.com>
Rolldown's dead-code elimination needs explicit if/else blocks rather
than early returns to fully remove the unused branch from each build
target output.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
The Jest test runner uses tsconfig with module:commonjs which rejects
import.meta (TS1343). These lines are tree-shaken in CJS builds and
only execute in ESM output where import.meta is valid.

Co-authored-by: Cursor <cursoragent@cursor.com>
…est output

Use explicit getNodeRequire branching for ESM and CJS compatibility.
Align native federation test bundles to emit CJS `.js` for existing assertions.

Co-authored-by: Cursor <cursoragent@cursor.com>
Restore third-party-dts-extractor to the tsup build flow used on main.
Reinstate tsup as a workspace dev dependency for extractor build and tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 19, 2026

🦋 Changeset detected

Latest commit: 21e247c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 43 packages
Name Type
@module-federation/error-codes Patch
@module-federation/runtime Patch
@module-federation/webpack-bundler-runtime Patch
@module-federation/runtime-core Patch
@module-federation/utilities Patch
@module-federation/node Patch
@module-federation/sdk Patch
@module-federation/dts-plugin Patch
@module-federation/enhanced Patch
@module-federation/rspress-plugin Patch
website-new Patch
@module-federation/devtools Patch
@module-federation/data-prefetch Patch
@module-federation/metro Patch
@module-federation/modern-js-v3 Patch
@module-federation/modern-js Patch
@module-federation/nextjs-mf Patch
@module-federation/retry-plugin Patch
@module-federation/runtime-tools Patch
@module-federation/bridge-react Patch
@module-federation/bridge-vue3 Patch
@module-federation/storybook-addon Patch
@module-federation/rsbuild-plugin Patch
@module-federation/cli Patch
@module-federation/esbuild Patch
@module-federation/managers Patch
@module-federation/manifest Patch
@module-federation/rspack Patch
@module-federation/bridge-react-webpack-plugin Patch
shared-tree-shaking-no-server-host Patch
shared-tree-shaking-no-server-provider Patch
@module-federation/metro-plugin-rnc-cli Patch
@module-federation/metro-plugin-rnef Patch
shared-tree-shaking-with-server-host Patch
shared-tree-shaking-with-server-provider Patch
@module-federation/inject-external-runtime-core-plugin Patch
remote5 Patch
remote6 Patch
@module-federation/third-party-dts-extractor Patch
@module-federation/bridge-shared Patch
create-module-federation Patch
@module-federation/treeshake-server Patch
@module-federation/treeshake-frontend Patch

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

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 19, 2026

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 029d3a4
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/69966af9da1d7200089525c5
😎 Deploy Preview https://deploy-preview-4462--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ScriptedAlchemy ScriptedAlchemy changed the base branch from main to cursor/migration-from-nx-webpack-to-vanilla-webpack-c57c February 19, 2026 01:44
…-to-vanilla-webpack-c57c' into cursor/ci-failures-investigation-b06f

# Conflicts:
#	apps/bundle-size/project.json
#	apps/docs-ui/project.json
#	apps/manifest-demo/3009-webpack-provider/project.json
#	apps/manifest-demo/3010-rspack-provider/project.json
#	apps/manifest-demo/3011-rspack-manifest-provider/project.json
#	apps/manifest-demo/3012-rspack-js-entry-provider/project.json
#	apps/manifest-demo/webpack-host/cypress/support/e2e.ts
#	apps/manifest-demo/webpack-host/project.json
#	apps/manifest-demo/webpack-host/webpack.config.js
#	apps/node-dynamic-remote-new-version/project.json
#	apps/node-dynamic-remote/project.json
#	apps/node-remote/project.json
#	apps/react-ts-host/project.json
#	apps/react-ts-nested-remote/project.json
#	apps/react-ts-remote/project.json
#	apps/reactRemoteUI/project.json
#	apps/reactStorybook/project.json
#	apps/runtime-demo/3005-runtime-host/project.json
#	apps/runtime-demo/3006-runtime-remote/project.json
#	apps/runtime-demo/3007-runtime-remote/project.json
#	package.json
#	pnpm-lock.yaml
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 029d3a49ee

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +48 to +50
} else if (process.env['IS_ESM_BUILD'] === 'true') {
const { createRequire } =
require('node:module') as typeof import('node:module');
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Replace ESM require call with createRequire bootstrap

When the package is consumed through the new ESM export path, process.env.IS_ESM_BUILD is defined as 'true' in the tsdown build config, so this branch is taken and executes require('node:module'). In an actual ESM module, require is undefined, so any runtime path that calls getNodeRequire() will throw ReferenceError: require is not defined before chunk loading can proceed.

Useful? React with 👍 / 👎.

Comment on lines 3 to 4
export { NextFederationPlugin };
export default NextFederationPlugin;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore CommonJS default export compatibility

Removing the module.exports assignment changes the CommonJS API shape from a directly constructible plugin to an export namespace object. That breaks existing usage patterns like const NextFederationPlugin = require('@module-federation/nextjs-mf'); new NextFederationPlugin(...), which now receives an object instead of the class/function and throws at runtime.

Useful? React with 👍 / 👎.

@ScriptedAlchemy ScriptedAlchemy merged commit 0f49d69 into cursor/migration-from-nx-webpack-to-vanilla-webpack-c57c Feb 19, 2026
3 checks passed
@ScriptedAlchemy ScriptedAlchemy deleted the cursor/ci-failures-investigation-b06f branch February 19, 2026 01:49
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