alex8088
c104b2d15b
fix(bytecode): set the regular expression's lastIndex to 0 to perform a global match for chunkAlias option
2026-09-29 23:45:48 +08:00
Beans
c047b58d5d
feat(bytecode): support RegExp for chunkAlias option ( #885 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-09-29 23:25:21 +08:00
alex8088
a135566fa5
fix(esmShim)!: use this.parse to find the last static import ( #906 )
2026-09-28 22:53:13 +08:00
alex8088
68b80f0ad5
fix(deps)!: downgraded @babel/* to v7 due to Node requirements
2026-09-27 18:39:07 +08:00
alex8088
53bc35b240
fix(deps)!: update @babel/* to v8
2026-09-27 17:51:29 +08:00
alex8088
a7f76d8d44
fix(deps)!: update magic-string to v1
2026-09-25 01:26:57 +08:00
alex8088
e691efbd82
refactor: compile bytecode using the Electron main process or renderer process rather then via the ELECTRON_RUN_AS_NODE
2026-09-25 00:39:47 +08:00
edenbuilds
608461c04c
fix(swcPlugin): also disable oxc on Vite 8 ( #920 )
...
Vite 8 defaults transform to Oxc; esbuild:false alone is ignored and
warns. SWC should disable both. Fixes #916 .
Co-authored-by: edenbuilds <279970382+edenbuilds@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 13:10:42 +08:00
alex8088
4bede21c81
fix: remove useless preset config
2026-04-18 00:56:23 +08:00
alex8088
371b650d71
fix: chunk filename is wrong in ES mode
2026-04-12 16:24:56 +08:00
alex8088
5333d5216a
fix!: compatible with rollupOptions and rolldownOptions
2026-04-12 16:18:24 +08:00
alex8088
2765eea74d
refactor!: simplify resolve config and isolate user config for sub-builds
2026-04-12 02:58:42 +08:00
alex8088
a041f42e0b
fix(asset): isolate asset caches per environment
2026-04-09 22:30:27 +08:00
alex8088
2b7c4c33bc
fix: use the environment api in plugins
2026-04-09 21:51:42 +08:00
alex8088
517d703cbf
fix: skip TTY terminal manipulations in CI environments
2026-04-09 00:50:27 +08:00
alex8088
fa84b6d6c3
refactor: ?modulePath sub-build output strategy
2026-04-09 00:38:21 +08:00
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