File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ module.exports = (api, options = {}) => {
1414 if ( ! hasBackground ) {
1515 // If user does not have a background file it should be created
1616 api . render ( './templates/base' , {
17- spectronSupport : options . electronBuilder . addTests
17+ spectronSupport : options . electronBuilder . addTests ,
18+ vue3 : / ^ ( \^ ? ) 3 / . test ( pkg . dependencies . vue )
1819 } )
1920 }
2021 // Add tests
Original file line number Diff line number Diff line change 22
33import { app , protocol , BrowserWindow } from 'electron'
44import { createProtocol } from 'vue-cli-plugin-electron-builder/lib'
5- import installExtension , { VUEJS_DEVTOOLS } from 'electron-devtools-installer'
5+ import installExtension , { VUEJS < % if ( vue3 ) { % > 3 < % } % > _DEVTOOLS } from 'electron-devtools-installer'
66const isDevelopment = process . env . NODE_ENV !== 'production'
77
88// Scheme must be registered before the app is ready
@@ -60,7 +60,7 @@ app.on('ready', async () => {
6060 if ( isDevelopment && ! process . env . IS_TEST ) {
6161 // Install Vue Devtools
6262 try {
63- await installExtension ( VUEJS_DEVTOOLS )
63+ await installExtension ( VUEJS < % if ( vue3 ) { % > 3 < % } % > _DEVTOOLS )
6464 } catch ( e ) {
6565 console . error ( 'Vue Devtools failed to install:' , e . toString ( ) )
6666 }
You can’t perform that action at this time.
0 commit comments