originjs / vite-plugin-federation

Module Federation for vite & rollup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shared dependencies is loaded sequentially

ElielGez opened this issue · comments

Hello,
I noticed that when I'm putting shared dependencies inside federation plugin it's loading those dependencies sequentially and not in parallel, This is causing bad performance when page first init..
Maybe I'm missing something, but couldn't find anything related to this in docs

Versions

  • vite-plugin-federation: 1.2.3
  • vite: 4.4.5

Reproduction

Please see the waterfall chart below:
image

Steps to reproduce

Just set federation plugin like this:
federation({
name: 'host',
filename: 'remoteEntry.js',
remotes: {
},
shared: ['react','react-dom','uuid','bowser', etc..]
}),

What is Expected?

Load in parallel to reduce loading time

What is actually happening?

Loading sequentially