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

vite-plugin-electron-renderer

Package Overview
Dependencies
Maintainers
2
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-electron-renderer - npm Package Versions

23
7

0.14.6

Diff

Changelog

Source

0.14.6 (2024-09-20)

  • d96d581 chore: bump deps
  • 40f7100 Merge branch 'bugfix/fix-electron-store' into v0.14.6
  • 8cb42af chore: add .npmrc
  • 2ba1a84 feat: export all Electron Apis for third-party npm pkgs
  • d415315 fix issue
  • d5cd80b chore: add comments for #82
  • 6cf7c42 docs: update
  • 47a7ea7 chore: bump vite
caoxie
published 0.14.5 •

Changelog

Source

0.14.5 (2023-05-23)

  • 46def0c fix: bump lib-esm to 0.4.1 for #73
caoxie
published 0.14.4 •

Changelog

Source

0.14.4 (2023-05-21)

  • fe221ec fix: move lib-esm to devDependencies | closes electron-vite-react#149
caoxie
published 0.14.3 •

Changelog

Source

0.14.3 (2023-05-20)

  • 6901413 chore: bump deps
  • 7a601aa test: v0.14.3
  • f7c4b46 chore: cleanup
  • caf1172 docs: explain where put type: 'cjs' module
  • 30b5bd8 fix: compatible Windows path
caoxie
published 0.14.2 •

Changelog

Source

0.14.2 (2023-05-05)

  • 6930c08 v0.14.2
  • d99bec7 feat(build): target node14
  • af15ae0 fix: correct lookup path for require() #63 | closes #63
  • 69a6a0b chore: cleanup
  • ef1f57e docs: update
  • dd3e052 chore: cleanup
caoxie
published 0.14.1 •

Changelog

Source

0.14.1 (2023-04-15)

  • ffef5f2 chore: bump vite-plugin-utils to 0.4.1
  • 7d8471e chore: add comments
  • 4d50e2f fix: better .cjs file import path #60
  • 274cf00 chore(v0.14.1): cleanup
caoxie
published 0.14.0 •

Changelog

Source

0.14.0 (2023-04-13)

Break!
export interface RendererOptions {
  resolve?: {
-   [id: string]: (() => string | { platform: 'browser' | 'node' } | Promise<string | { platform: 'browser' | 'node' }>)
+   [module: string]: {
+     type: 'cjs' | 'esm',
+     build?: (args: {
+       cjs: (module: string) => Promise<string>,
+       esm: (module: string, buildOptions?: import('esbuild').BuildOptions) => Promise<string>,
+     }) => Promise<string>
+   }
  }
}
Main Changed
  1. on-demand pre-bundle builtin, third-part C/C++, esm modules
  2. support full custom pre-bundle
  • 98c4d27 docs: v0.14.0
  • af6bb2b chore(examples): update quick-start
  • 110c854 chore: better build script
  • cd1b5bb chore: remove .npmrc
  • b8038f5 refactor(v0.14.0): better options.resolve
  • 7c5afae refactor(v0.14.0): on-demand pre-bundle
caoxie
published 0.13.14 •

Changelog

Source

0.13.14 (2023-03-31)

caoxie
published 0.13.13 •

Changelog

Source

0.13.13 (2023-03-29)

  • 8c044c9 fix: require instead await import
caoxie
published 0.13.12 •

Changelog

Source

0.13.12 (2023-03-28)

  • 7f6b3a4 fix: correctly path
  • a7b1132 docs: update
  • 6604d99 chore: install.mjs -> install.js
  • 2f70a9b refactor: separate cjs-shim.ts
  • 45fef6b refactor: cleanup, separate cjs-shim.ts
Main Changed

If you build in cjs format, you need to import the corresponding shim plugin

import cjsShim from 'vite-plugin-electron-renderer/dist/cjs-shim.mjs'

export default {
  build: {
    rollupOptions: {
      output: {
        format: 'cjs',
      },
    },
  },
  plugins: [
    cjsShim(),
  ],
}
23
7
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