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 { return {
name: 'vite:swc', name: 'vite:swc',
config(): UserConfig { config(): UserConfig {
// Vite 8 moved default transform to Oxc: only disabling esbuild is ignored // Vite 8 defaults to Oxc for transform; `esbuild: false` is ignored and
// and emits a warning. SWC replaces both paths when this plugin is active. // warns. SWC replaces both paths when this plugin is active.
// See https://github.com/alex8088/electron-vite/issues/916 // See https://github.com/alex8088/electron-vite/issues/916
return { return {
esbuild: false, esbuild: false,