RepoSense
RepoSense copied to clipboard
[#2176] Move from Vue CLI to Vite
Fixes #2176
Proposed commit message
Move from Vue CLI to Vite
Vue CLI has been put on maintenance mode and its dependencies have
security issues that have not been fixed for a while. Switching to Vite
also allows us to introduce Vitest for our unit testing.
Let's install Vite and remove Vue CLI.
Other information
A few things worthy of discussion:
- The Vite migration guide suggests removing Babel (which supports older browsers), which has been done so. If we decide to retain support for them, we can do so with a plugin.
- The Vite changes remove the ability to configure the title and source folder for the
html
file from the config file. However, now that thehtml
file has been moved out of thepublic
folder (by design of Vite), this may not be a big concern. We can use a.env
file if we want to be able to edit the title and root folder from another file. - The Cypress tests on CI did not work initially and had to be hotfixed by adding
"chromeWebSecurity": false
into the Cypress config file. Since this is not very extensible to other browsers, we should also find another way to get the tests to work.