vitejs / vite

Next generation frontend tooling. It's fast!
http://vitejs.dev
MIT License
66.07k stars 5.91k forks source link

[Feature Request] Microfrontend #6749

Closed fzn0x closed 2 years ago

fzn0x commented 2 years ago

Clear and concise description of the problem

Is there non-hacky way for microfrontends using vite ? It would be good if vite supporting microfrontends.

Suggested solution

Using new properties in vite.config.js to share preview between frontends.

Take a look of https://webpack.js.org/plugins/module-federation-plugin/ for example.

Alternative

different approach is welcome :)

Additional context

No response

Validations

Niputi commented 2 years ago

if you want module federation, there's a plugin https://github.com/originjs/vite-plugin-federation

fzn0x commented 2 years ago

Cool! thanks @Niputi