-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Frontend development server is slow #2156
Comments
hi @u5r0, I would be interested into investigating it. What configuration do you have? |
Good idea! I was trying to enable HMR with craco and vanilla webpack configuration last week and was failing miserably 😄 |
yes it is very slow taking more time to open |
What is your configuration? Is it only the first time build that is taking time? None of us have experienced slow build internally but we all have similar configuration (Mac M2 or M1) |
Anyway, if there is a way to improve developer experience there, we should invest into it :) |
Why are we closing it @u5r0? :) |
I thought you answered my question, I'll reopen.. |
What configuration do you have? And do you have experience with setting up vite for react projects? |
I don't have an existing config, tinkering is the plan. I've implemented projects in Vite, but haven't migrated from CRA. Twenty's codebase isn't that large just yet, and thought I'd give it a shot. This is an initial setup, the vite server started but couldn't handle |
I did a setup jest few days back with vite, was a bit pain. Probably vitest would be easier to get started, I also have the Jest and RTL combination with Vite running, but it's not a big repo. Dependencies This was the Jest configuration used. "jest": {
"moduleNameMapper": {
"\\.(css|less)$": "identity-obj-proxy"
},
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
},
"testEnvironment": "jsdom"
} |
@u5r0 @ArijitCloud does any of you have a working environment we could try with vite? |
@charlesBochet Hey, this's a working environment https://github.com/u5r0/twenty/tree/vite4/vitro Also, it's vite 4, we should aim for vite 5. I just didn't want anything to get in the way while I'm trying to run it for the first time. |
Thanks to @u5r0, twenty-front has just migrated to vite. It's indeed faster and less resource intensive! |
Scope & Context
I'm experiencing a hard time with server reload on the current setup. Frontend developement requires fast refresh because of many modifications you do per minute.
Technical inputs
If there's no work around, would you accept a PR for a move from craco/webpack to vite?
The text was updated successfully, but these errors were encountered: