Merge upstream master into esm-shim-string-false-import

Keep the ESM shim fix while incorporating the current Vite 8/Oxc plugin
comment update.
This commit is contained in:
edenbuilds 2026-08-27 07:02:03 +05:30
commit a3bcbbd4ec

View File

@ -83,8 +83,8 @@ export function swcPlugin(options: SwcOptions = {}): Plugin {
return {
name: 'vite:swc',
config(): UserConfig {
// Vite 8 moved default transform to Oxc: only disabling esbuild is ignored
// and emits a warning. SWC replaces both paths when this plugin is active.
// Vite 8 defaults to Oxc for transform; `esbuild: false` is ignored and
// warns. SWC replaces both paths when this plugin is active.
// See https://github.com/alex8088/electron-vite/issues/916
return {
esbuild: false,