Skip to content

Commit 953c97e

Browse files
committed
chore(index): remove vestigial code
1 parent c347363 commit 953c97e

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

index.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ module.exports = (api, options) => {
4141
pluginOptions.rendererProcessFile !== undefined
4242
? ['First arg is removed', pluginOptions.rendererProcessFile]
4343
: []
44-
if (pluginOptions.experimentalNativeDepCheck) {
45-
process.env.VCPEB_EXPERIMENTAL_NATIVE_DEP_CHECK = true
46-
}
4744

4845
const removeArg = (arg, count, rawArgs) => {
4946
const index = rawArgs.indexOf(arg)
@@ -142,9 +139,7 @@ module.exports = (api, options) => {
142139
'[]'
143140
)
144141
})
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
148143
options.publicPath = pluginOptions.customFileProtocol || 'app://./'
149144
info('Bundling render process:')
150145
// Build the render process with the custom args
@@ -464,13 +459,13 @@ module.exports = (api, options) => {
464459
'Not launching electron as debug argument was passed. You must launch electron through your debugger.'
465460
)
466461
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.'
468463
)
469464
info(
470465
'Learn more about debugging the main process at https://nklayman.github.io/vue-cli-plugin-electron-builder/guide/testingAndDebugging.html#debugging.'
471466
)
472467
} else if (args.headless) {
473-
// Log information for spectron
468+
// Log information for playwright
474469
console.log(`$outputDir=${outputDir}`)
475470
console.log(`$WEBPACK_DEV_SERVER_URL=${server.url}`)
476471
} else {
@@ -642,9 +637,7 @@ function bundleMain ({
642637
}
643638

644639
module.exports.defaultModes = {
645-
'build:electron': 'production',
646-
'serve:electron': 'development',
647640
'electron:build': 'production',
648641
'electron:serve': 'development'
649642
}
650-
module.exports.testWithSpectron = require('./lib/testWithSpectron')
643+
module.exports.testWithPlaywright = require('./lib/testWithPlaywright')

0 commit comments

Comments
 (0)