JorgenVatle / meteor-vite

⚡ Replace Meteor's bundler with Vite for blazing fast build-times
MIT License
16 stars 5 forks source link

Update Vite's default dependency optimization entrypoint with the Vite client entry file #128

Closed JorgenVatle closed 2 months ago

JorgenVatle commented 2 months ago

Discussed in https://github.com/JorgenVatle/meteor-vite/discussions/125

Originally posted by **harry-73** February 23, 2024 Hi, I am trying to setup Cypress working with this package on Github actions. on Github, when running the tests, the `node_modules/.vite/dep/` folder is empty, so `vite` optimized dependencies: ``` => Client modified -- refreshing I20240223-18:44:22.903(1)? 6:44:22 PM [vite] ✨ new dependencies optimized: vuetify/lib/components/VSkeletonLoader/index.mjs, vuetify/lib/components/transitions/index.mjs, vue-chartjs, chart.js, chartjs-adapter-moment I20240223-18:44:22.903(1)? 6:44:22 PM [vite] ✨ optimized dependencies changed. reloading ``` and sometimes the Vite server restarts: `I20240223-18:56:52.300(1)? ⚡ Starting Vite server..` In this case, the tests failed. I reproduce the issue, locally: - I delete the `node_modules/.vite/dep/` folder - I ran the tests ==> It fails - the `node_modules/.vite/dep/` folder has the _optimized_ files - I run the tests ==> it is OK. How can we avoid that?