You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added vite-ruby to an existing rails project that uses React for the UI, following the tutorial and all.
I noticed I had to add the file extension to the include tag otherwise the file would not be found <%= vite_javascript_tag 'app.jsx' %>
I need to try the --profile flag because the app is too slow, it takes more than 15s to load the first page, I noticed that there are more than 1000 requests in the network tab because it's one request per react component file...
the live reload takes a long time as well, so after I change the code the browser takes 5s or more to pick up the changes
Why is the dev server not using configs from vite.config.ts? things like this lib import react from "@vitejs/plugin-react-swc" or "@vitejs/plugin-react" seem to help with slow load time in dev.
ElMassimo
changed the title
cant we run vite with --profile? the binary does not accept this flag
Support the new --profile flag when running vite buildJan 16, 2023
bundle update vite_ruby
.Description 📖
Reproduction 🐞
I added vite-ruby to an existing rails project that uses React for the UI, following the tutorial and all.
I noticed I had to add the file extension to the include tag otherwise the file would not be found
<%= vite_javascript_tag 'app.jsx' %>
I need to try the --profile flag because the app is too slow, it takes more than 15s to load the first page, I noticed that there are more than 1000 requests in the network tab because it's one request per react component file...
the live reload takes a long time as well, so after I change the code the browser takes 5s or more to pick up the changes
Why is the dev server not using configs from vite.config.ts? things like this lib
import react from "@vitejs/plugin-react-swc"
or"@vitejs/plugin-react"
seem to help with slow load time in dev.Vite Ruby Info
Run
bin/rake vite:info
and provide the output:Logs 📜
If not providing a reproduction:
Output
Run
DEBUG=vite-plugin-ruby:* bin/vite dev
orDEBUG=vite-plugin-ruby:* bin/vite build
and provide the output:the only different thing that shows here is this, and then
Screenshots 📷
Provide console or browser screenshots of the problem.
The text was updated successfully, but these errors were encountered: