vite-plugin-electron
Advanced tools
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