@@ -41,9 +41,6 @@ module.exports = (api, options) => {
41
41
pluginOptions . rendererProcessFile !== undefined
42
42
? [ 'First arg is removed' , pluginOptions . rendererProcessFile ]
43
43
: [ ]
44
- if ( pluginOptions . experimentalNativeDepCheck ) {
45
- process . env . VCPEB_EXPERIMENTAL_NATIVE_DEP_CHECK = true
46
- }
47
44
48
45
const removeArg = ( arg , count , rawArgs ) => {
49
46
const index = rawArgs . indexOf ( arg )
@@ -142,9 +139,7 @@ module.exports = (api, options) => {
142
139
'[]'
143
140
)
144
141
} )
145
- // Set the base url so that the app protocol is used
146
- options . baseUrl = pluginOptions . customFileProtocol || 'app://./'
147
- // Set publicPath as well (replaced baseUrl since @vue/cli 3.3.0)
142
+ // Set the base url (publicPath) so that the app protocol is used
148
143
options . publicPath = pluginOptions . customFileProtocol || 'app://./'
149
144
info ( 'Bundling render process:' )
150
145
// Build the render process with the custom args
@@ -464,13 +459,13 @@ module.exports = (api, options) => {
464
459
'Not launching electron as debug argument was passed. You must launch electron through your debugger.'
465
460
)
466
461
info (
467
- 'If you are using Spectron , make sure to set the IS_TEST env variable to true.'
462
+ 'If you are using Playwright , make sure to set the IS_TEST env variable to true.'
468
463
)
469
464
info (
470
465
'Learn more about debugging the main process at https://nklayman.github.io/vue-cli-plugin-electron-builder/guide/testingAndDebugging.html#debugging.'
471
466
)
472
467
} else if ( args . headless ) {
473
- // Log information for spectron
468
+ // Log information for playwright
474
469
console . log ( `$outputDir=${ outputDir } ` )
475
470
console . log ( `$WEBPACK_DEV_SERVER_URL=${ server . url } ` )
476
471
} else {
@@ -642,9 +637,7 @@ function bundleMain ({
642
637
}
643
638
644
639
module . exports . defaultModes = {
645
- 'build:electron' : 'production' ,
646
- 'serve:electron' : 'development' ,
647
640
'electron:build' : 'production' ,
648
641
'electron:serve' : 'development'
649
642
}
650
- module . exports . testWithSpectron = require ( './lib/testWithSpectron ' )
643
+ module . exports . testWithPlaywright = require ( './lib/testWithPlaywright ' )
0 commit comments