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 = {}) => {
14
14
if ( ! hasBackground ) {
15
15
// If user does not have a background file it should be created
16
16
api . render ( './templates/base' , {
17
- spectronSupport : options . electronBuilder . addTests
17
+ spectronSupport : options . electronBuilder . addTests ,
18
+ vue3 : / ^ ( \^ ? ) 3 / . test ( pkg . dependencies . vue )
18
19
} )
19
20
}
20
21
// Add tests
Original file line number Diff line number Diff line change 2
2
3
3
import { app , protocol , BrowserWindow } from 'electron'
4
4
import { 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'
6
6
const isDevelopment = process . env . NODE_ENV !== 'production'
7
7
8
8
// Scheme must be registered before the app is ready
@@ -60,7 +60,7 @@ app.on('ready', async () => {
60
60
if ( isDevelopment && ! process . env . IS_TEST ) {
61
61
// Install Vue Devtools
62
62
try {
63
- await installExtension ( VUEJS_DEVTOOLS )
63
+ await installExtension ( VUEJS < % if ( vue3 ) { % > 3 < % } % > _DEVTOOLS )
64
64
} catch ( e ) {
65
65
console . error ( 'Vue Devtools failed to install:' , e . toString ( ) )
66
66
}
You can’t perform that action at this time.
0 commit comments