alex8088
2576484604
chore: improve logging message clarity and consistency
2025-10-28 21:50:47 +08:00
alex8088
88f6db2239
refactor: split electron plugin into preset and validator plugins
2025-10-28 21:50:12 +08:00
alex8088
0a79da03db
feat: add isolatedEntries option for preload and renderer to build entries as standalone bundles #154
2025-10-27 23:40:01 +08:00
alex8088
c3939ade45
refactor(asset): remove redundant path normalization
2025-10-24 23:57:12 +08:00
alex8088
38228f9b3f
fix(modulePath): prevent duplicate asset emission
2025-10-24 22:10:03 +08:00
alex8088
8b193864fd
feat: enhanced string protection
2025-10-20 23:35:21 +08:00
alex8088
5debb6f83b
refactor: remove Electron 18, 19, 20, 21 build compatilibity target
2025-10-19 16:00:01 +08:00
alex8088
d530597339
chore: rename the file esm to esmShim
2025-10-19 15:53:19 +08:00
alex8088
a9b5326544
perf(plugin): enhance path resolution using import.meta.dirname for ES modules
2025-10-19 15:47:35 +08:00
alex8088
7587d2c674
perf(bytecodePlugin): better way to count bytecode chunks
2025-10-19 14:49:09 +08:00
alex8088
0fb8918090
perf(plugin): lazily initialize MagicString and remove the redundant pre-check
2025-10-19 14:42:35 +08:00
alex8088
c7955aa6fd
perf(plugin): no need to cache sourcemap option
2025-10-19 12:11:29 +08:00
alex8088
70e027d38a
perf(plugin): more efficient module filtering via regular expressions
2025-10-19 11:57:23 +08:00
alex8088
28bb22b353
refactor(modulePath): better support for tree-shaking and code-splitting
2025-10-18 17:10:04 +08:00
alex8088
327adc23df
refactor(bytecodePlugin): improved bytecode bundle generation and made a new string protection plugin
2025-10-18 16:33:49 +08:00
alex8088
0badfc493f
chore: update eslint config
2025-10-17 21:28:47 +08:00
alex8088
b55eb725c4
perf: build compatibility target for Electron 38
2025-09-21 16:52:57 +08:00
alex8088
cbee52c8bb
perf: build compatibility target for Electron 37
2025-06-28 13:12:31 +08:00
alex8088
48e6f4f570
fix(deps)!: update Vite to v7 and remove cjs build
2025-06-28 13:08:38 +08:00
alex8088
4071778f07
fix: use import type for type-only imports
2025-06-28 00:01:48 +08:00
alex8088
3fd16d0c23
refactor!: bump required node version to 20.19+, 22.12+
2025-06-27 23:10:23 +08:00
jonz94
3d5c9f68a1
perf: build compatibility target for Electron 36 ( #766 )
2025-05-06 10:12:44 +08:00
alex8088
b56d3c2d21
fix(bytecodePlugin): optimize 'use strict' directive replacement ( #681 )
2025-03-16 19:24:22 +08:00
jonz94
ea144aef19
perf: build compatibility target for Electron 35
2025-03-09 04:16:52 +08:00
alex8088
6e8572d9b7
feat: resolve conditions for preload
2025-01-22 22:24:04 +08:00
alex8088
4b47ef0bd4
perf: build compatilibity target for Electron 34
2025-01-22 21:16:13 +08:00
alex8088
dfe6a3e3f8
chore(deps): update all non-major dependencies
2025-01-22 01:04:31 +08:00
alex8088
6c01417909
chore: move to eslint flat config
2025-01-22 00:47:48 +08:00
kye shimizu
5ffd49eddc
perf: build compatilibity target for Electron 33 ( #651 )
2024-11-11 23:49:02 +08:00
alex8088
bf1220875f
perf: build compatilibity target for Electron 32
2024-08-21 21:49:44 +08:00
alex8088
19b42225f8
perf: improve cjs shim
2024-06-22 22:28:08 +08:00
alex8088
d9aaf24f84
fix: default mode should not overrite user config mode
2024-06-21 01:03:01 +08:00
Krystian Otto
3605aca1e8
fix: not using the mode from the config file ( #539 )
2024-06-21 00:49:24 +08:00
Justin Carrus
73dfee5a4f
fix: don't handle module ID that begin with \0 ( #530 )
2024-06-15 22:03:45 +08:00
alex8088
b3185d7fc5
feat: resolve import.meta.[dirname|filename] to support CommonJS format
2024-06-15 21:49:51 +08:00
alex8088
d79de5abb6
perf: build compatilibity target for Electron 31
2024-06-13 23:45:44 +08:00
alex8088
a48e12a9df
fix(types): narrow down the return type of defineConfig
2024-04-21 21:15:15 +08:00
alex8088
1abedce6c2
refactor(config): defineConfig types
2024-04-21 19:59:46 +08:00
alex8088
c2c655367f
chore: fix camelcase typo
2024-04-21 19:04:33 +08:00
alex8088
6170705eae
perf: build compatilibity target for Electron 30
2024-04-20 23:50:12 +08:00
alex8088
eeaa7de45c
feat: export mergeConfig from vite ( #471 )
2024-04-20 23:42:45 +08:00
alex8088
08ff86f2c4
feat: easy way to fork processes and use workers
2024-03-03 19:08:48 +08:00
alex8088
0ce505a12f
perf(bytecodePlugin): warn that strings cannot be protected when minification is enabled ( #417 )
2024-03-03 16:45:50 +08:00
alex8088
ad891af811
fix: config via build.lib fails when default entry point not found ( #393 )
2024-03-01 23:06:09 +08:00
alex8088
27ade03acf
chore: format
2024-03-01 22:33:56 +08:00
Luke Hagar
52fce25787
perf: allow integrating more complex render solutions ( #412 )
2024-02-24 01:01:26 +08:00
alex8088
19489a28c8
perf: build compatilibity target for Electron 29
2024-02-24 00:31:41 +08:00
alex8088
a12646f25e
fix: electorn's export subpaths also need to be externalized #372
2024-01-06 11:33:53 +08:00
alex8088
694e134a52
feat: config file supports "type": "module" in package.json
2024-01-04 00:00:57 +08:00
alex8088
476ef54498
chore: format
2023-12-16 17:31:13 +08:00
Mikael Finstad
9b04362e12
feat: support for passing arguments to electron in dev and preview commands ( #339 )
2023-12-16 17:11:27 +08:00
alex8088
a8f5182d25
perf: loadEnv api also needs to load shared env variables prefixed with VITE_
2023-12-15 22:14:58 +08:00
alex8088
0c98f33573
perf(externalizeDepsPlugin): use cached package data to improve performance
2023-12-15 21:40:24 +08:00
alex8088
0b265442a1
feat: env variables prefixed with VITE_ will be shared in main process and renderer
2023-12-14 21:14:49 +08:00
alex8088
7b27e684d6
perf: dev error message
2023-12-14 20:49:22 +08:00
alex8088
dbd7b0137b
fix: externalizeDepsPlugin not work
2023-12-14 20:46:00 +08:00
alex8088
cc0df8a8cc
perf: package version
2023-12-13 21:21:15 +08:00
alex8088
93e84f6bce
perf(worker): ESM syntax
2023-12-13 21:12:43 +08:00
alex8088
619a337c6d
perf: resolve import meta url in CommonJS format
2023-12-13 21:10:53 +08:00
alex8088
963f8aba51
fix: emit assets when ssr is enabled
2023-12-13 21:06:40 +08:00
alex8088
b578f61f1c
refactor: use dynamic import directly
2023-12-12 23:11:36 +08:00
alex8088
5de87d681b
refactor: remove Electron 11, 12 build compatilibity target
2023-12-12 23:00:03 +08:00
alex8088
a7b3c65576
perf: build compatilibity target for Electron 28
2023-12-12 22:58:50 +08:00
alex8088
4924e36d74
perf: use magic-string hires boundary for sourcemaps
2023-12-12 22:55:55 +08:00
alex8088
c1e1ca0471
feat: support ESM in Electron
2023-12-12 22:40:37 +08:00
alex8088
cb58ef8649
perf: improve package.json resolve
2023-12-11 22:06:22 +08:00
alex8088
93763597fe
refactor: file hashes use url-safe base64 encoded hashes in vite 5 (rollup 4)
2023-12-11 21:59:31 +08:00
alex8088
b93a1878c1
feat: migrate to ESM
2023-12-08 22:03:47 +08:00
alex8088
8bb03f8b24
feat: bump minimum node version to 18
2023-12-08 21:35:06 +08:00
alex8088
7369960b99
feat(cli): support --noSandbox option for dev and preview command
2023-11-08 23:03:50 +08:00
alex8088
ac47dacc1b
perf: build compatilibity target for Electron 27
2023-10-17 21:57:45 +08:00
alex8088
01163866fb
feat(cli): supports specifying electron entry file ( #270 )
2023-09-08 00:32:43 +08:00
alex8088
670c23b2e1
perf: build compatilibity target for Electron 26
2023-09-07 22:14:02 +08:00
alex8088
566f88960e
fix(externalizeDepsPlugin): supports subpath
2023-09-07 22:06:47 +08:00
Yoni Rapoport
27acfb7c1d
Support subpath imports from externalized dependencies
...
Using an array of regular expressions for rollupOptions.external, I've fixed an issue causing subpath imports or external dependencies (e.g. import {} from 'pkg/subpath') to be bundled.
2023-08-15 14:37:48 +03:00
alex8088
d8307e8fd4
chore: update user config interface jsdoc
2023-07-30 17:00:41 +08:00
alex8088
342a0556cd
perf: spawn Electron process using parent's stdios ( #236 )
2023-07-29 01:44:26 +08:00
alex8088
9d76799072
feat(cli): add CLI --inspect[-brk] to support debugging without IDEs ( #231 )
2023-07-27 00:33:28 +08:00
alex8088
ed13174829
fix(asset): asset handling error when hot reloading
2023-07-11 00:00:14 +08:00
alex8088
0367f73a95
fix: remove node resolve condition for preload ( #204 )
2023-07-07 21:35:12 +08:00
alex8088
4f796e4c8a
perf: ignore browser field and additional node condition for main config
2023-06-18 16:33:08 +08:00
alex8088
3def0ed84b
fix(bytecodePlugin): bytecode loader relative path is incorrect
2023-06-18 16:21:38 +08:00
alex8088
6dff3475b4
feat: supports ES build target for renderer #174
2023-06-03 22:18:48 +08:00
alex8088
c26a9ff71c
perf: build compatilibity target for Electron 25
2023-06-03 21:43:17 +08:00
alex8088
8c924188de
revert: chore: remove process env define ( #159 )
2023-05-14 17:49:04 +08:00
alex8088
f443c18056
feat: add --rendererOnly flag to dev command
2023-04-23 21:28:58 +08:00
alex8088
a736af835e
perf: build compatilibity target for Electron 24
2023-04-18 23:46:29 +08:00
alex8088
3b2ba0ae25
chore: remove process env define
2023-04-18 23:11:33 +08:00
alex.wei
72d37a70ca
Merge pull request #139 from gknapp/config-error-messages
...
fix(dev): Rephrase config error messages, fix typo 'electorn'
2023-04-03 09:51:47 +08:00
Greg Knapp
c0d9ad3fd5
Rephase certain error messages, fix typo 'electorn'
2023-03-31 16:37:15 +01:00
alex8088
6c6db628f6
fix(bytecodePlugin): sub-chunks are not compliled in vite 4
2023-03-26 23:08:52 +08:00
alex8088
f33c86383e
fix(bytecodePlugin): bytecode loader is not referenced correctly in the chunks
2023-03-26 21:17:29 +08:00
alex8088
1cb7d419a2
perf: alway disable build.modulePreload in main and preload config
2023-03-25 13:21:33 +08:00
alex8088
5ad0747f32
feat: support for renderer debugging ( #130 )
2023-03-11 20:29:06 +08:00
alex8088
f7f19f9649
fix(bytecodePlugin): not work in monorepo ( #128 )
2023-03-11 00:15:19 +08:00
alex8088
05e0cc6db1
fix: specified renderer outDir is not parsed correctly
2023-03-10 23:47:17 +08:00
alex8088
55be651207
fix(asset): asset path is not resolved correctly when outDir is specified #117
2023-03-10 23:46:57 +08:00
alex8088
a84ae9e7e0
perf: print log
2023-03-05 18:21:31 +08:00
alex8088
b0fc657db4
perf: build compatilibity target for Electron 23
2023-02-08 21:35:49 +08:00
alex8088
c3567edba9
fix(bytecodePlugin): escape protected strings
2023-02-05 21:41:01 +08:00