Switch from vue-cli to vite #1026
Draft
+2,158
−6,773
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #1005
First attempt to switch from vue-cli to vite and a few things to discuss:
I had to use
cryptojs
instead ofcrypto
(MD5(value).toString();
instead ofcrypto.createHash("md5").update(value).digest("hex");
)I had to use
import.meta.env.BASE_URL
instead ofprocess.env.BASE_URL
I remove
.browserslistrc
andbabel.config.js
, not useful with vite ?vite 6.x.x
not supported bycypress
? (warning message)In
vite.config.js
, I useextensions: [".vue", ".js", ".json"]
to not rename all the imports in all the files, but it could be better to take the time to do it ? (e.g.import Navbar from "@/components/Navbar";
toimport Navbar from "@/components/Navbar.vue";
Had to rename env variables from
VUE_
toVITE_
to make it work without having to import all of them. Should we keep it that way (and also rename them where ever it's needed, e.g. github?) or just import them in the vite.config.js ?To do:
package.json
?Bokeh
.Just need to downgrade to Bokeh 2.4.0
import "tinymce/plugins/hr";
not workingDowngrade tinymce to v5