vcync / modV

modular audio visualisation powered by JavaScript
https://modv.vcync.gl
MIT License
449 stars 25 forks source link

Remove Vue CLI Plugin Electron Builder #864

Open 2xAA opened 1 year ago

2xAA commented 1 year ago

Basically gonna copy https://github.com/danielgarthur/neanes/issues/116 here:

Per the Vue.js tooling guide:

Vue CLI is the official webpack-based toolchain for Vue. It is now in maintenance mode and we recommend starting new projects with Vite unless you rely on specific webpack-only features.

Electron⚡️Vite appears to be the recommended tool for building a Vue.js 3 Electron application in 2023.

In #862 I've updated things to support Node 18, so we're at least somewhat up-to-date now. But, vue-cli-plugin-electron-builder is absolutely out of date so we should look at an Electron-Vite move.

I've looked into moving to Vite before and ran into some issues with WebWorkers. Vite uses Rollup under the hood.

As it stands now (on #862) we're on Webpack 5 and have dropped worker-loader as Webpack 5 natively supports workers now - so maybe it's not such a headache after all.

I'm feeling this would probably be a modV meet-up 202X issue, or a virtual hack-weekend. Tackling this myself would be a huge undertaking.