Skip to content

chore: use official @module-federation/vite - #21605

Merged
Lms24 merged 5 commits into
getsentry:developfrom
gioboa:chore/use-offcial-mfe-vite-lib
Jul 9, 2026
Merged

chore: use official @module-federation/vite#21605
Lms24 merged 5 commits into
getsentry:developfrom
gioboa:chore/use-offcial-mfe-vite-lib

Conversation

@gioboa

@gioboa gioboa commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@module-federation/vite is the official and supported Module Federation integration for Vite. Read the announcement.
It gives the maintained path for Vite-based federation, with upstream support for compatibility fixes, future Vite changes, and new Module Federation capabilities as they evolve.
Thanks

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you apply the label PR: no-auto-close I will leave it alone ... forever!

@Lms24
Lms24 self-requested a review July 9, 2026 06:18

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hey @gioboa thanks for opening this PR and apologies for the late review!

I ran CI and it seems like building the test app now fails:


error during build:
[commonjs--resolver] Missing "./module-runner" specifier in "vite" package
    at e (file:///home/runner/work/_temp/test-application/node_modules/.pnpm/vite@5.4.21/node_modules/vite/dist/node/chunks/dep-BK3b2jBa.js:46042:25)
    at n (file:///home/runner/work/_temp/test-application/node_modules/.pnpm/vite@5.4.21/node_modules/vite/dist/node/chunks/dep-BK3b2jBa.js:46042:627)
    at o (file:///home/runner/work/_temp/test-application/node_modules/.pnpm/vite@5.4.21/node_modules/vite/dist/node/chunks/dep-BK3b2jBa.js:46042:1297)
    at resolveExportsOrImports (file:///home/runner/work/_temp/test-application/node_modules/.pnpm/vite@5.4.21/node_modules/vite/dist/node/chunks/dep-BK3b2jBa.js:46663:18)
    at resolveDeepImport (file:///home/runner/work/_temp/test-application/node_modules/.pnpm/vite@5.4.21/node_modules/vite/dist/node/chunks/dep-BK3b2jBa.js:46686:25)
    at tryNodeResolve (file:///home/runner/work/_temp/test-application/node_modules/.pnpm/vite@5.4.21/node_modules/vite/dist/node/chunks/dep-BK3b2jBa.js:46451:16)
    at Object.resolveId (file:///home/runner/work/_temp/test-application/node_modules/.pnpm/vite@5.4.21/node_modules/vite/dist/node/chunks/dep-BK3b2jBa.js:46201:19)
    at file:///home/runner/work/_temp/test-application/node_modules/.pnpm/rollup@4.62.2/node_modules/rollup/dist/es/shared/node-entry.js:23026:40
    at async PluginDriver.hookFirstAndGetPlugin (file:///home/runner/work/_temp/test-application/node_modules/.pnpm/rollup@4.62.2/node_modules/rollup/dist/es/shared/node-entry.js:22908:28)
    at async resolveId (file:///home/runner/work/_temp/test-application/node_modules/.pnpm/rollup@4.62.2/node_modules/rollup/dist/es/shared/node-entry.js:21369:26)

are you still interested in continuing to work on this? No worries if not! I agree that switching to the official plugin is a good change, so I'd be happy to merge this once CI passes.

FYI, the easiest way to run e2e tests locally is to go into dev-packages/e2e-tests and run yarn test:run browser-mfe-vite.

@gioboa gioboa left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

are you still interested in continuing to work on this?

Yeah, let me check this

@gioboa

gioboa commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

@Lms24 now it should work 🤞

@Lms24 Lms24 self-assigned this Jul 9, 2026
@github-actions github-actions Bot removed the PR: stale label Jul 9, 2026
@Lms24
Lms24 merged commit e5dbd17 into getsentry:develop Jul 9, 2026
49 checks passed
@Lms24

Lms24 commented Jul 9, 2026

Copy link
Copy Markdown
Member

thank you!

@gioboa
gioboa deleted the chore/use-offcial-mfe-vite-lib branch July 9, 2026 17:59
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