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
alex8088
32d78f2f42
feat(bytecodePlugin): protect strings #91
2023-01-30 22:00:33 +08:00
alex8088
44af7960a2
fix(asset): wasm must be suffixed with ?loader
2023-01-13 21:32:54 +08:00
alex8088
b3208d3dae
feat(asset): support for WebAssembly in the main process
2023-01-10 21:53:38 +08:00
alex8088
62e8be1c34
chore(worker): use toRelativePath helper
2023-01-07 12:57:09 +08:00
alex8088
336b4292eb
feat: static asset handling
2023-01-04 22:53:22 +08:00
alex8088
f7b4146c56
fix: output duplicate log in vscode debugging #75
2022-12-28 21:54:20 +08:00
alex8088
a5de5b36f5
chore(bytecodePlugin): KiB to kB
2022-12-28 21:27:53 +08:00
alex8088
ad1ca5dcd7
fix: output format check
2022-12-11 21:57:31 +08:00
alex8088
95736032f2
fix: invalid output format check
2022-12-11 21:16:23 +08:00
alex8088
d086e0d51a
fix: NODE_ENV is incorrect in vite 4.x
2022-12-10 23:26:10 +08:00
alex8088
16d9932bac
feat: specify env prefixes for vite's loadEnv and export it
2022-12-04 01:59:03 +08:00
alex8088
ffb2426e75
feat: support mode and command conditional config
2022-12-04 01:24:25 +08:00
alex8088
767aee7464
perf: build compatilibity target for Electron 22
2022-12-01 21:33:05 +08:00
alex8088
067c333aeb
perf: do not externalize node builtin modules for the renderer ( #61 )
2022-11-19 14:24:12 +08:00
alex8088
23ae7636cd
fix(bytecodePlugin): replace bytecode module regex ( #54 )
2022-11-13 01:19:58 +08:00
alex8088
baf538cfe4
fix(bytecodePlugin): bytecode loader injection and chunk module parsing errors ( #49 )
2022-11-11 20:48:23 +08:00
alex8088
41ff7372c2
fix: output format error under multiple entries
2022-11-11 20:40:37 +08:00
alex8088
cf1151ef5f
fix: incorrect replace __dirname/_filename
2022-11-08 20:29:44 +08:00
alex8088
10f5ae64a3
refactor: plugins
2022-11-08 20:17:22 +08:00
alex8088
28d069c453
feat: support for node worker ( #51 )
2022-11-08 00:36:22 +08:00
alex8088
bf0c83835a
fix: unreachable code
2022-11-02 23:51:42 +08:00
alex8088
97ad5fa726
feat: make a SWC plugin to emit decorator metadata ( #48 )
2022-11-02 01:34:19 +08:00
alex8088
6bae6ac6b4
fix: use modulePreload.polyfill instead polyfillModulePreload
2022-11-01 23:06:22 +08:00
alex8088
caafa1355d
feat: add --skipBuild flag to preview command ( #44 )
2022-10-29 13:10:20 +08:00
alex8088
97a62b75f2
feat: monorepo support
2022-10-23 21:23:27 +08:00
Ian Storm Taylor
d0476dd91e
Use require.resolve to find electron package
...
Fixes #38
2022-10-21 13:22:01 -04:00
alex8088
f09a482c66
feat: externalize deps plugin
2022-10-15 14:53:33 +08:00
alex8088
59e1d93166
fix: compatible with the latest version of Electron
2022-10-07 13:36:50 +08:00
alex8088
c49068258d
perf: build compatilibity target for Electron 21
2022-09-27 20:40:32 +08:00
alex8088
cf08073f08
perf: bytecode compilation log print format
2022-09-26 19:44:54 +08:00
alex8088
969dc30e50
perf: disable gzip-compressed size reporting, increase build performance
2022-09-26 19:35:09 +08:00
alex8088
fab097e367
feat: export splitVendorChunk from vite
2022-09-25 00:33:44 +08:00
alex8088
51b9f74457
refactor: load config file
2022-09-25 00:18:13 +08:00
alex8088
dd6322f9c8
chore: function style
2022-09-24 23:58:10 +08:00
alex8088
8556a45cab
perf: the bytecodePlugin transform arrow function by default
2022-09-22 18:54:29 +08:00
alex8088
19bfb2a829
fix: in the specified non-production mode, the base path is wrong
2022-09-19 18:33:56 +08:00
alex8088
556fe95f20
fix: specify a config file error
2022-09-19 18:32:39 +08:00
alex8088
9132b24751
feat: source code protection
2022-09-19 03:06:37 +08:00
alex8088
4779bcf911
chore: add electron-vite mode node env
2022-09-18 17:06:06 +08:00
alex8088
cd0bbb6cfb
perf: cache electron executable path
2022-09-18 01:46:02 +08:00
alex8088
c6bade23b5
chore: use node prefix
2022-09-17 23:47:48 +08:00
alex8088
714798fd56
chore: disable build.watch in production
2022-09-09 01:28:36 +08:00
alex8088
1bd15486ea
feat: main process and preload scripts support hot reloading ( #7 )
2022-09-08 23:49:30 +08:00
alex8088
b62b8ec0bb
feat: add sourcemap cli options for debugging
2022-08-29 18:35:21 +08:00
alex8088
7a60cce781
feat: define env prefix
2022-08-20 20:33:14 +08:00
alex8088
cec47266bd
perf: build target for Electron 20
2022-08-08 19:19:49 +08:00
alex8088
71dc5fd18b
fix: can not get import meta env variables in renderer #10
2022-08-08 19:14:08 +08:00
alex8088
04abdda294
fix: error occurs when the preload config is a function
2022-07-03 15:29:19 +08:00
xiaohui
c568348fc9
fix: ELECTRON_RENDERER_URL is incorrect
2022-06-20 00:38:05 +08:00
alex8088
c71d5aa661
feat: add sqlite3 module to rollup external option
2022-06-05 12:28:18 +08:00
alex8088
1a0130ab4f
fix: throw error when vite.config.* file in root ( #3 )
2022-05-01 00:18:21 +08:00
alex8088
74cc7f4adc
feat: export splitVendorChunkPlugin from vite
2022-04-27 00:09:13 +08:00
alex8088
6bc7d6f6e1
perf: build target for Electron 19
2022-04-09 16:24:43 +08:00
alex8088
a5c3e6b230
fix: an error occurred when TSconfig file changed
2022-03-31 20:13:41 +08:00
alex8088
82477b6db2
perf: no need to polyfill module preload for the Electron renderer
2022-03-28 11:52:42 +08:00
alex8088
ef99b02b18
chore: init
2022-03-17 16:21:02 +08:00