Skip to content
Discussion options

You must be logged in to vote

The Main and Preload threads are not passing through Vite. They are compiled by Esbuild. Unfortunately, Esbuild does not have a direct "alias" feature, but you could use "define" instead?

https://quasar.dev/quasar-cli-vite/developing-electron-apps/configuring-electron

// quasar.config.js
electron: {
  extendElectronMainConf (cfg) {
    // do something with Esbuild config
    // for the Electron Main thread
  },

  extendElectronPreloadConf (cfg) {
    // do something with Esbuild config
    // for the Electron Preload thread
  }
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@fprijate
Comment options

@fprijate
Comment options

@rstoenescu
Comment options

Answer selected by rstoenescu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants