electron-webpack
electron-webpack copied to clipboard
Vue v3 support
Is it possible to use the Vue add-on with Vue v3.0.0-beta.*?
Doesn't work with the existing add-on. Not sure if they'll add support until the official release.
What worked for me:
Installed "@vue/compiler-sfc": "^3.0.0-rc.5", "vue-loader": "^16.0.0-beta.5", "vue": "^3.0.0-rc.5".
Then had to edit node_modules/electron-webpack/out/targets/RendererTarget.js. In the configureRules method it will check if vue is in your app dependencies and if so tries to import some stuff that only works with vue-loader v15 or lower. So I just removed the section in there that checks for Vue.
Then using a custom renderer webpack config you can add the vue-loader & vue-loader plugin to the config. And you also need to delete the vue alias using delete config.resolve.alias.vue$;.
Vue 3.0 has been released five months ago. Is there something planned to support it?