Does Vite has something similar to webpacks DllPlugin? #6563
Replies: 4 comments
-
i have same question |
Beta Was this translation helpful? Give feedback.
-
I have the same question too 🦉 |
Beta Was this translation helpful? Give feedback.
-
I have the same question too 😐 In our Micro Frontends project, built with Webpack, we use the Webpack DLL Plugin to prevent each microfrontend part from repeatedly loading commonly used libraries like React. We place all common dependencies into a single library.js file and make them accessible under the window object. We want to transition from Webpack to Vite in our project, but we haven't found a plugin or feature in Vite that provides the same functionality as the Webpack DLL Plugin. Could you recommend an alternative method to achieve this with Vite? |
Beta Was this translation helpful? Give feedback.
-
Same question +1, Is there any result ? |
Beta Was this translation helpful? Give feedback.
-
It's often needed if for example React has to be shared to plugins (of the app). So the shared vendors can be prebuilt and the plugins uses the reference dll to not bundle its own Module but rather use the existing.
Beta Was this translation helpful? Give feedback.
All reactions