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

Consider replacing Webpack with Vite #640

Closed
michelwaechter opened this issue Jun 23, 2022 · 4 comments · Fixed by #1019
Closed

Consider replacing Webpack with Vite #640

michelwaechter opened this issue Jun 23, 2022 · 4 comments · Fixed by #1019
Labels
enhancement New feature or request hm Requires more thought

Comments

@michelwaechter
Copy link

Is your feature request related to a problem? Please describe.
Nearly every developers knows about the issues with webpack and its compiling methods. It's also a bit slow and hot reload doesn't work as brilliant as it could be. Please consider to replace webpack with vite.

Describe the solution you'd like
Please replace webpack with vite as fast as possible. Performance is much better. Compiling much faster and less bugs.

Describe alternatives you've considered
Here is a link to the normal vite way of creating an application.
https://vitejs.dev/guide/#scaffolding-your-first-vite-project

With
yarn create vite my-vue-app --template react
or
yarn create vite my-vue-app --template react-ts

You can replace the normal CRA process. There are also templates for vueJS, svelte and many other languages.

Additional context
WASP + VITE = LOVE

@Martinsos
Copy link
Member

Haha, love your Wasp + Vite = Love :D!

Btw, since mentioning alternative build tools, I heard about parcel.js (https://parceljs.org/) and that looked very interesting, since it seemed to be very declarative and low on config -> any thoughts about parcel as a build solution?

@Martinsos Martinsos added enhancement New feature or request refactoring Keeping that code clean! hm Requires more thought and removed refactoring Keeping that code clean! labels Jun 23, 2022
@michelwaechter
Copy link
Author

Personally i've never tried. But there are many developers who switched from Parcel to Vite, like in this Github Discussion.

@Martinsos
Copy link
Member

Another user (@MetaMmodern) suggesting we switch to Vite:

the thing about webpack is that webpack sucks))))) as well as CRA. So when CRA see's that somewhere upper in the tree incompatible version of webpack is installed it does not want to start. (it should not however). Soooo, I strongly suggest you to move to Vite or rollup or esbuild. (Vite is my choice from now on, 0 config, fast, caching, really supercool)))

@Martinsos
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hm Requires more thought
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants