vite-plugin-electron
Advanced tools
Changelog
0.15.0 (2023-11-06)
tree-kill
doesn't workcalcEntryCount()
github.com/caoxiemeihao/electron-vite-samples
Fixs:
electron
does not exit correctly | δ½Ώη¨ctrl + c εζ’代η οΌelectronεε°δΈε
³ι #168, #122electron
startup timing #166Contributors:
Changelog
0.14.0-beta.0 (2023-08-23)
See π Simple API
import electron from 'vite-plugin-electron/simple'
electron({
main: {},
preload: {},
renderer: {},
})
Changelog
0.13.0-beta.3 (2023-08-22)
apply: 'serve'
vite-plugin-electron/plugin
The user decides when notBundle
should be used. See π Not Bundle
import electron from 'vite-plugin-electron'
import { notBundle } from 'vite-plugin-electron/plugin'
export default defineConfig(({ command }) => ({
plugins: [
electron({
entry: 'electron/main.ts',
vite: {
plugins: [
command === 'serve' && notBundle(/* NotBundleOptions */),
],
},
}),
],
}))
Changelog
0.13.0-beta.2 (2023-08-21)
Not Bundle
pluginUsers need to import the notBundle
plugin explicitly. See π Not Bundle
import electron from 'vite-plugin-electron'
import { notBundle } from 'vite-plugin-electron/plugin'
export default {
plugins: [
electron({
entry: 'electron/main.ts',
vite: {
plugins: [
notBundle(/* NotBundleOptions */),
],
},
}),
],
}
Changelog
0.13.0-beta.1 (2023-08-06)
cjs
availabeChangelog
0.13.0-beta.0 (2023-08-06)
external_node_modules
Let's use the electron-log
as an examples.
βββββββββββββββββββββββββββββββββββββββ
β import log from 'electron-log' β
βββββββββββββββββββββββββββββββββββββββ
β
Modules in `node_modules` are not bundled during development, it's fast!
β
βββββββββββββββββββββββββββββββββββββββ
β const log = require('electron-log') β
βββββββββββββββββββββββββββββββββββββββ
Changelog
0.12.0 (2023-06-13)
defineConfig
, Configuration
-> ElectronOptions
, config.ts -> utils.tsChangelog
0.11.2 (2023-04-15)
browserField
by default #136.npmrc
for pnpm