Usage with Vitejs
See original GitHub issue💬 Questions and Help
Hello, we recently had to migrate a huge Webpack app over to Vitejs. And the fact is that in the Webpack version we were using loadable-components
. But because of its dependency on Webpack for SSR we decided that we were gonna disable it temporarly. But now, we would like to try and hook it up with Vite so that it works without problem.
So that question is: does loadable-components
work or has any plans to work with Vite?
If not, the limitation right now is the SSR piece with the babel plugin as well as the chunks collector? If so, could you point us towards a possible solution? We could very much provide some PR if needed even.
Thanks!!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:7
- Comments:5
Top Results From Across the Web
Getting Started - Vite
Legacy browsers can be supported via the official @vitejs/plugin-legacy - see ... You can navigate to vite.new/{template} to select which framework to use....
Read more >Vite JS - Next Generation Frontend Tool
Here, Vite uses source code over native ESM. And by using ESBuild and ESM under the hood, Vite enhances the startup speed 10-100x....
Read more >How to Install and Use Vite in Your Web Projects
Vite.js is a rapid development tool for modern web projects. It focuses on speed and performance by improving the development experience.
Read more >What is Vitejs? An Overview of the New Front-end Build Tool
Vite is a build tool that significantly improves the front-end development experience. You can use Vite to set up a development environment ...
Read more >How to Develop and Deploy Fast Applications With Vite JS
ESM support allows browsers to fetch modules when importing them. Vite uses ESM to eliminate the build step while in development fully. This...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey. Unfortunately
loadable-components
currently are very webpack specific. There are plans to make it less bound to the underlying system, but this is not something you can expect to happen soon enough.Currently, the only “browser-independent” code splitting solution is react-imported-component, which I do maintain as well, but it hasn’t been tested with Vite, so no guarantees as well.
Vite is gaining in popularity, I hope this stance can be reconsidered.