9803675 fix(test): the right time
41bff23 fix: optimizeDeps.exclude
builtin modules #27
- c97bd16 refactor: better builtins build
- 61e9e05 refactor: better polyfill with
nodeIntegration:false
#24 - 4ef703c feat: lazy load
esbuild
- 06e7f31 Merge pull request #25 from electron-vite/vitest
- 35bb551 feat(test): integrate vitest
- 502f7f2 feat: support Pre-Bundling cache #15
- cbab7db fix: insert built-in modules to
optimizeDeps.exclude
- Pre-Bundling Node.js built-in modules by default.
- Fixed incorrect loading of static resources (It does not support custom assetsDir).
- ee51908 feat: build built-in modules 🌱
- 51d5287 fix:
assetsDir
default value - 5d0dfc0 refactor: always Pre-Bundling built-in modules
- a8c546b fix: add 'vite-plugin-electron-renderer/electron-renderer' to
optimizeDeps.exclude
.
- All Node.js APIs must be Pre-Bundling via
optimizeDeps
(the 'electron' module does not need to be built), this brings the benefit of being able to use it in Web Worker at the same time. - Remove
worker()
plugin. - Use Vite to build all source code, and will no longer support importing a plugin separately.
- c9b42be refactor: build with Vite
- d31f314 electron-renderer.js
- 2904e03 feat:
nodeIntegration
in build-config.ts - 4d292fb feat:
optimizeDeps
support Node.js built-in modules - 522955c refactor!: remove
worker()
, remove Node.js API support.
optimizerDeps
should not process builtins, builtins will be processed in use-node.js.ts
.
- 6436b49 fix: avoid built-in modules
optimizerDeps
generate sourcemap by default vite-plugin-electron#70
sync vite-plugin-electron
version
- 1cc4f40 fix(🌱): support Vite3 - Uncaught TypeError: Failed to construct 'URL': Invalid URL (vite 3) #44
- 32f7755 feat(🌱): output ESM format - TypeError: electron is not a function #45
- 33b121a chore(deps): hoist
typescript
- 9d5fd94 fix(🐞): filter out keywords
- d3c1d7a chore(renderer): update config
- 298e4de refactor(renderer):
electron-renderer/plugins
->electron-renderer/src
- 841cbd1 docs(electron-renderer): update
- 3994b9a chore(electron-renderer): fix link
- 72efa81 docs(electron-renderer): update
- be80d0c vite-plugin-electron-renderer@0.6.0
- 7e69a7c docs:
vite-plugin-electron-renderer@0.6.0
- da89e79 remove
electron-renderer/index.d.ts
- 581ef71 chore(deps): bump vite to 3.0.2
- 716485b refactor vite-plugin-electron-renderer with TypeScript
- baf5e80 refactor use-node.js with TypeScript
- 7e3fd3d refactor polyfill-exports with TypeScript
- 2249834 refactor build-config with TypeScript
- 8dad5e2 refactor(🚨): exclude
dependencies
as external by default - 0163d12 feat:
scripts.dev
- 3ad4b41 feat:
scripts.build
scripts.dev
- 48a0338 monorepo: add
packages/electron-renderer
- 71799c7 fix(🐞):
cwd is not defined
- d31f917 refactor:
root: string
instead ofconfig: UserConfig
- 7f5117b chore: types
- 17eab4d fix(🐞): build Electron-Renderer
- f5ea26c remove
plugins/use-node.js/electron-renderer.js
- 75b60c2 docs: v0.5.4
- 1b933d2 refactor(🌱): better logic
- 69eb531 docs: v0.5.3
- cc98ed9 feat:
ResolveModules['options']
optional - db03a72 chore: remove
useNodeJs.default = useNodeJs
- c30dc1b fix(🐞): add
electron
to ` builtins
- 9dd8d4c feat: export
resolveModules()
- 609e582 feat: interface
ResolveModules
- dc6d6f6 docs: update
- 201eb71 docs: 🚨 ESM packages
- c8fe50b docs:
import { ipcRenderer } from 'electron'
- ec224db refactor: optimize code
- f0efdfb fix(🐞): exclude ESM package
- f3e6b2c chore: optimize code
- 66df43b docs: update
- e2afb1e docs:
Electron-Renderer(vite serve)
flow chart - 329056f docs:
dependencies
vsdevDependencies
- d9734c9 Update README.md
- 6f3d745 fix(🐞):
require('fs')
- 53845da feat:
config.build.emptyOutDir=false
- 7cf9deb electron-renderer.js -> plugins/use-node.js/electron-renderer.js
- 7d537d5 docs: v0.5.0
- 2966399 refactor: standalone plugins
- ac356f2 feat:
vite-plugin-electron-renderer:use-node.js
- 9798acd feat:
vite-plugin-electron-renderer:polyfill-exports
- 0948df9 feat:
vite-plugin-electron-renderer:build-config
- 9fb0e03 docs: update
- b6ec453 Update README.md
- 32acf9a docs: update
- d277390 docs: update
- a7a41a4 docs: v0.4.1
- 62b7584 feat: try resolve
package.json
fromprocess.cwd()
- 87da81f docs: v0.4.0
- f2b860b remove README.zh-CN.md
- 130dce3 refactor:
resolve()
instead ofdependencies
- 4a2620d refactor: from v0.3.3