Commit graph

122 commits

Author SHA1 Message Date
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