-
Notifications
You must be signed in to change notification settings - Fork 1
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
Migrate from Vue2 to Vue3 #42
base: master
Are you sure you want to change the base?
Conversation
Removed unused dependencies, everything still works so far.
Everything still works
xmldom is a dependency of osmtogeojson that hasn't been updated yet, the xmldom version had to be updated in the package-lock to get around this, but there are unmerged PRs that should fix this eventually: tyrasd/osmtogeojson#138
It's no longer recommended to use require: https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor adjustments that should be made before merging. See comments.
- Override xmldom to fix vulnerability - Update README - Minor formatting - fix SVG warning in Chrome browser
ESLint 8.x is deprecated which has lead to some deprecation warnings (no vulnerabilities), but it's a dependency for some libraries that seem like they aren't being maintained any more. I made an issue for this as well to work on in a separate PR since this one is getting very large. |
This started as a dependency update, but the majority of vulnerabilities were in dependencies related to Vue CLI. Migrating from Vue CLI to Vite took the vulnerabilities from over 100 down to under 20. This PR will have a LOT of changes.
Vue CLI to Vite
I followed this tutorial for migrating to Vite, at the recommendation of the Vue3 documentation. They also recommend migrating from Vuex to Pinia, which was created as a prototype for Vuex 5, but that should probably be saved for another PR.
Prettier / ESLint
Incompatible Libraries
TODO
Vue2 -> Vue3
@import
is deprecated)@use
in the vite config, but we needed to update all of the SCSS variables to start with$
instead of$--
, otherwise they would not be recognized.Merge main after this PR is approved.
Update README with new library docs