alex8088
2f1f389776
fix(deps)!: update vite to v8 ( #894 )
2026-04-08 02:04:25 +08:00
Michal Fudala
5a8bbe3d0e
fix(isolateEntries): handle non-TTY stdout in build reporter ( #887 )
...
The `clearLine` and `writeLine` helpers use TTY-only methods (`clearLine`, `cursorTo`,
`moveCursor`) without checking `process.stdout.isTTY`, causing builds to crash in
non-interactive environments like CI or piped output.
See error I got in my CI environment:
```
vite v7.3.1 building ssr environment for production...
✗ Build failed in 7ms
✓ 0 modules transformed.
✗ Build failed in 9ms
error during build:
[vite:isolate-entries] Could not load virtual:isolate-entries:
[vite:transform-reporter] process.stdout.clearLine is not a function
```
2026-02-16 22:25:35 +08:00
alex8088
6aae37833e
perf(buildReport): exclude node_modules from watch list
2025-10-31 21:59:15 +08:00
alex8088
9152dfc943
fix(modulePath): rewrite the build input instead of merging
2025-10-31 01:16:10 +08:00
alex8088
0276407b5b
refactor: deprecated externalizeDepsPlugin and bytecodePlugin
2025-10-31 01:16:02 +08:00
alex8088
1bba6766e8
perf(isolateEntries): optimize entries transformation
2025-10-29 23:35:38 +08:00
alex8088
4edffe3b9a
perf(isolateEntries): transform log
2025-10-29 23:25:28 +08:00
alex8088
cfd9812a91
feat: reporter plugin for isolated builds
2025-10-29 22:32:35 +08:00
alex8088
7c7f31b2a3
fix: avoid duplicate chunk emission
2025-10-29 21:22:12 +08:00
alex8088
ae57b2489a
fix(asset): normalize imported public asset chunk path
2025-10-29 21:12:13 +08:00
alex8088
8892bf3679
fix(modulePath): support watch mode
2025-10-28 21:50:54 +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
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
b56d3c2d21
fix(bytecodePlugin): optimize 'use strict' directive replacement ( #681 )
2025-03-16 19:24:22 +08:00
alex8088
6e8572d9b7
feat: resolve conditions for preload
2025-01-22 22:24:04 +08:00
alex8088
dfe6a3e3f8
chore(deps): update all non-major dependencies
2025-01-22 01:04:31 +08:00
alex8088
19b42225f8
perf: improve cjs shim
2024-06-22 22:28:08 +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
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
a12646f25e
fix: electorn's export subpaths also need to be externalized #372
2024-01-06 11:33:53 +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
dbd7b0137b
fix: externalizeDepsPlugin not work
2023-12-14 20:46:00 +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
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
93763597fe
refactor: file hashes use url-safe base64 encoded hashes in vite 5 (rollup 4)
2023-12-11 21:59:31 +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
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