Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ESBuild Module Federation instead of Native Federation #27

Closed

Conversation

renansoares
Copy link

@renansoares renansoares commented Jul 8, 2024

This MR contains a draft plugin and a test app to use Module Federation ESBuild instead of Native Federation.

The goal is to investigate if it is possible to leverage ESBuild MF to create a Vite plugin.

@renansoares
Copy link
Author

I'm facing some issues with the dependencies, ESBuild isn't happy when try to compile/bundle it again.

Vite already uses ESBuild to bundle, using MF ESBuild Plugin is an extra bundle step. I'm starting to wonder if create a brand new plugin and reuse some of the code wrote for the ESBuild plugin is a better approach than to reuse it because of the dependencies issues.

@gioboa
Copy link
Collaborator

gioboa commented Jul 8, 2024

Hi @renansoares thanks for your help.
We can basically rewrite from scratch this Vite plugin to use the esBuild implementation. 💪

I'm facing some issues with the dependencies, ESBuild isn't happy when try to compile/bundle it again.

How can I reproduce this problem locally?

@renansoares
Copy link
Author

Closing this in favor of new implementation using module-federation-vite.

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