Skip to content

Conversation

@ScriptedAlchemy
Copy link
Member

Per-package rslib bundleless migration for enhanced.

@changeset-bot
Copy link

changeset-bot bot commented Feb 2, 2026

⚠️ No Changeset found

Latest commit: 3a102f1

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

Copy link

@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: 3495d27ca2

ℹ️ 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 369 to 373
if (implementation) {
runtimePath = require.resolve(
`@module-federation/runtime/dist/index.esm.js`,
`@module-federation/runtime/dist/index.js`,
{
paths: [implementation],

Choose a reason for hiding this comment

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

P2 Badge Resolve runtime dist entry that doesn't exist

When options.implementation is provided, this now resolves @module-federation/runtime/dist/index.js, but the published runtime package only exposes dist/index.esm.js and dist/index.cjs.cjs (see packages/runtime/package.json exports/main/module). In that common case require.resolve will throw and the plugin fails before compilation. Using the same fallback logic as resolveDistEntry (or reverting to index.esm.js) avoids breaking custom implementations.

Useful? React with 👍 / 👎.

Comment on lines 450 to 454
if (this.options?.implementation) {
this.bundlerRuntimePath = require.resolve(
'@module-federation/webpack-bundler-runtime/dist/index.esm.js',
'@module-federation/webpack-bundler-runtime/dist/index.js',
{
paths: [this.options.implementation],

Choose a reason for hiding this comment

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

P2 Badge Resolve bundler runtime entry that doesn't exist

With options.implementation set, the code now resolves @module-federation/webpack-bundler-runtime/dist/index.js, but the package exports only dist/index.esm.js and dist/index.cjs.cjs (see packages/webpack-bundler-runtime/package.json). This throws during plugin setup for implementations that mirror the published layout, preventing builds from starting. The earlier .esm.js resolution (or a resolveDistEntry fallback) avoids this runtime failure.

Useful? React with 👍 / 👎.

@netlify
Copy link

netlify bot commented Feb 2, 2026

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 3a102f1
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/69813a67fbc69f0007d0be5a
😎 Deploy Preview https://deploy-preview-4360--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.

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