Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More β†’
Socket
Sign inDemoInstall
Socket

vite-plugin-electron

Package Overview
Dependencies
Maintainers
0
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-electron - npm Package Versions

1
…
…
8

0.15.0

Diff

Changelog

Source

0.15.0 (2023-11-06)

  • 234be07 fix: tree-kill doesn't work
  • 5e6c36d feat: calcEntryCount()
  • bbd6bd1 Merge branch 'main' of github.com:electron-vite/vite-plugin-electron into main
  • 9a910e5 Merge pull request #166 from CommandMC/fix/wait-for-all-files
  • 3962718 fix: startup electron wait for all files built
  • 7f75ae2 Merge branch 'fix/wait-for-all-files' of https://github.com/CommandMC/vite-plugin-electron into main
  • 65b73c2 Merge pull request #122 from sevenc-nanashi/main
  • e4033c3 Merge pull request #1 from caoxiemeihao/cleanup
  • 8e70a39 chore: cleanup
  • 20dd675 refactor: migrate examples to github.com/caoxiemeihao/electron-vite-samples
  • de9259f Change: Use peer-dependency
  • 8247192 Merge: main -> main
  • ab990b9 Wait until the last file is done bundling before starting Electron
  • 6e5a033 Merge pull request #163 from electron-vite/v0.14.1

Fixs:

  • electron does not exit correctly | 使用ctrl + c 停歒代码,electronεŽε°δΈε…³ι—­ #168, #122
  • Fixed electron startup timing #166

Contributors:

caoxie
published 0.14.1 β€’

Changelog

Source

0.14.1 (2023-09-10)

  • ba14f55 feat(simple): Preload scripts code not split by default
caoxie
published 0.14.0 β€’

Changelog

Source

0.14.0 (2023-09-01)

  • 3cc71ca feat(simple): build Preload scripts as cjs by default
caoxie
published 0.14.0-beta.0 β€’

Changelog

Source

0.14.0-beta.0 (2023-08-23)

  • d3cf87f feat: simple API build
  • d8c3c27 feat: simple API πŸ₯³

See πŸ‘‰ Simple API

import electron from 'vite-plugin-electron/simple'

electron({
  main: {},
  preload: {},
  renderer: {},
})
caoxie
published 0.13.0-beta.3 β€’

Changelog

Source

0.13.0-beta.3 (2023-08-22)

  • 37e14b0 fix: remove apply: 'serve'
  • 4f196e3 fix: export bare vite-plugin-electron/plugin
  • 06c91f3 docs: v0.13.0

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 */),
        ],
      },
    }),
  ],
}))
caoxie
published 0.13.0-beta.2 β€’

Changelog

Source

0.13.0-beta.2 (2023-08-21)

  • 86d9a34 chore: update pnpm lock
  • c6aceb3 refactor: standalone Not Bundle plugin
  • b3decf4 Merge pull request #150 from haodaking/changelog
  • 3f77d12 Update CHANGELOG.md

Users 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 */),
        ],
      },
    }),
  ],
}
caoxie
published 0.13.0-beta.1 β€’

Changelog

Source

0.13.0-beta.1 (2023-08-06)

  • e5403c1 feat: check cjs availabe
caoxie
published 0.13.0-beta.0 β€’

Changelog

Source

0.13.0-beta.0 (2023-08-06)

  • 5fbcf40 test: plugin external_node_modules
  • 9803e26 feat: non-bundle during dev πŸš€

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') β”‚
β”—β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β”›
caoxie
published 0.12.0 β€’

Changelog

Source

0.12.0 (2023-06-13)

  • 6822409 docs: v0.12.0
  • 9ec9d3b v0.12.0
  • 53a0dd8 feat: disable minify during dev
  • 3925cd1 refactor: remove defineConfig, Configuration -> ElectronOptions, config.ts -> utils.ts
caoxie
published 0.11.2 β€’

Changelog

Source

0.11.2 (2023-04-15)

  • b033bc5 v0.11.2
  • 8190208 docs: typo
  • 111d495 refactor(πŸ”¨): better build logic
  • 76611a9 fix: disable browserField by default #136
  • 241534f feat: add .npmrc for pnpm
  • 65d4ab1 chore: bump deps
  • b4308e3 chore: rename
  • 036e52c docs: update
  • a222c48 examples: update quick-start
  • d04155c examples: add javascript-api
  • 9213ba0 docs: update
  • 9b8da83 fix: cannot find type definition #126
  • e864b81 examples: update multiple-window, add multiple-renderer
  • 0a226b5 docs: update
  • ff5e9dc feat: add logo.svg
  • 7cec6ad examples: add multiple-windows
  • f8528ed Merge pull request #123 from xhayper/patch-1
  • 1e9f9b0 feat: remove extra dependencies
  • 8fa6ce4 feat: update package and example
  • 1d7eca5 feat: add test 🌱
  • 9ef3e8e chore: bump deps
  • 56446e2 chore: cleanup
1
…
…
8
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc