electron-webpack icon indicating copy to clipboard operation
electron-webpack copied to clipboard

Vue v3 support

Open cawa-93 opened this issue 5 years ago • 2 comments

Is it possible to use the Vue add-on with Vue v3.0.0-beta.*?

cawa-93 avatar May 16 '20 16:05 cawa-93

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$;.

WereGoingOcean avatar Aug 16 '20 12:08 WereGoingOcean

Vue 3.0 has been released five months ago. Is there something planned to support it?

clemp6r avatar Feb 08 '21 15:02 clemp6r