What's Changed
Vite Plugin Changes
In this release, a few improvements to the Vite plugin are important to note:
- We've had Out of Memory issues reported in the past for Vite builds with many renderer targets (ref #3965). Forge 7.9 adds the ability to limit the number of concurrent builds with the
concurrent
configuration flag. Note that another workaround to memory issues is to increase V8's max memory size using the--max_old_space_size
CLI flag in Node. - Forge 7.9 changes the default behaviour of Vite's static asset handling. Previously, the
publicDir
would copy to all build targets, where apps would typically only want to have the dir available for the web/renderer target. If you need to change this behaviour back, enable thebuild.copyPublicDir
option in the relevant Vite configurations.
Features:
- feat: updated publisher-s3 to support cache max-age for release files by @discorev in #3968
- feat: added inquirer as an alternative to --template cli by @sethcg in #3933
- feat(plugin-vite): add
concurrent
option by @erickzhao in #3990 - feat: improve Yarn Berry support by @erickzhao in #3997
Bug Fixes and Improvements
- build(deps): bump vite from 5.4.19 to 5.4.20 by @dependabot[bot] in #4001
- build(deps): use
@vscode/sudo-prompt
fork by @erickzhao in #3983 - build(deps): update
form-data
by @erickzhao in #3991 - fix: wait for previous app to exit before restarting by @MarshallOfSound in #3973
- fix(plugin-vite): only copy
/public
in the renderer by @erickzhao in #3971 - fix(core-utils): startLogic was called in incorrect context by @Hill-98 in #3809
- fix(plugin-vite): handle object-like inputs from rollup options in CLI output by @erickzhao in #3982
- fix(plugin-vite): support
electron/*
subpath imports by @erickzhao in #3988 - fix(plugin-vite): clearer bundle error state by @erickzhao in #3987
New Contributors
- @Hill-98 made their first contribution in #3809
- @sethcg made their first contribution in #3933
- @discorev made their first contribution in #3968
Full Changelog: v7.8.3...v7.9.0